12-get_variables/add3.php File Reference

This program displays form two add two numbers and displays their sum. More...

Go to the source code of this file.

Functions

 main ()
 This function checks if form was submitted.


Detailed Description

This program displays form two add two numbers and displays their sum.

It also re-displays form for entering two number when it displays sum so that adding next two numbers is very convinient.

Author:
Saurabh Barjatiya
Version:
1.0

Definition in file add3.php.


Function Documentation

main (  ) 

This function checks if form was submitted.

If form was submitted it ensures that both num1 and num2 were submitted. It adds values of both num1 and num2 and then displays form again with message that includes sum of given two numbers.

Returns:
Nothing

Definition at line 22 of file add3.php.

References check_and_get(), and display_add_form().


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