Menu
I am working on a basic calculator script, here is what the first if statement says for if nothing is entered:
[CODE]
<?php
if (($_POST[val1] == “” ) || ($_POST[val2] == “”) || ($_POST[calc] == “”))
{
header(“Location: http://localhost/calculate_form.html”);
exit;
}
However, I keep getting an error saying “Warning: Cannot modify header information – headers already sent by…” and then the address of the PHP script.