I have a form which gets input from the use and in this form the action is
action="<?=$_SERVER['PHP_SELF'] ?>"
I have a php code which checks if the use has input the valid data and then if all is ok I have use the header function to redirect window to a page which has the code to submit this data to a data base and displays a ThankYou message.
My header function looks like
header ("Location: guesssubmit.php"); //line 66
exit;
But when I submit the form an erro is displayed
Warning: Cannot modify header information - headers already sent by (output started at
F:\Projects\mypro\site\guess.php:12) in F:\Projects\mypro\site\guess.php on line 66