12-get_variables/add3.php

Go to the documentation of this file.
00001 <?php
00011 //This is to include file common_functions.php which has
00012 //common functions which are required in more than one page.
00013 require("common_functions.php");
00014 
00022 function main()
00023 {
00024     if(isset($_GET['submit1']))
00025     {
00026         $num1=check_and_get('num1');
00027         $num2=check_and_get('num2');
00028         display_add_form("add3.php", "Sum of $num1 and $num2 is " . ($num1 + $num2) . "<br/>\n");
00029     }
00030     else
00031         display_add_form("add3.php", "");
00032 }
00033 
00034 
00035 main();
00036 ?>

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