try to comment out this part of your script like this:
//if (($_POST[val1] == "") || ($_POST[calc] =="")) {
//header("Location: //http://127.0.0.1/calculate_form.html");
//exit;
//}
then run it and see what happens, i think something is wrong in that piece of code there and it's just reloading calculate_form.html instead of executing the rest of the script
|