form test


Second Number:


if (count($_POST) > 0 && isset($_POST["Num1"]) && isset($_POST["Num2"])){
// add First and Second Numbers
$sum = $_POST["Num1"] + $_POST["Num2"];
// their sum is diplayed as
echo “The sum of First Number (“.$_POST["Num1"].”) and
Second Number (“.$_POST["Num2"].”) is $sum”;
}
?>

Be Sociable, Share!

About the Author

Gaetan Bertin, Digital Media Strategist evolving in the web industry since 2000. Expert in Media, Search Marketing and Web Analytics