12-get_variables/add.php File Reference

This program expects two numbers passed via GET variables num1 and num2. More...

Go to the source code of this file.

Functions

 main ()
 This function uses check_and_get() function to obtain values of num1 and num2 after ensuring that they were indeed supplied.


Detailed Description

This program expects two numbers passed via GET variables num1 and num2.

It adds those two numbers and displays sum. It also prints error message if one of num1 or num2 is not supplied as GET variable.

Author:
Saurabh Barjatiya
Version:
1.0

Definition in file add.php.


Function Documentation

main (  ) 

This function uses check_and_get() function to obtain values of num1 and num2 after ensuring that they were indeed supplied.

Then this function adds those two numbers and displays sum on screen.

Returns:
Nothing.

Definition at line 24 of file add.php.

References check_and_get().


Generated on Fri Nov 4 14:16:55 2011 for PHP example documentation by  doxygen 1.4.7