Hi,
I have page which both displays and checks a form. So, the user displays the page, fills in the form and clicks on submit. the post is to php_self so the page is called again. it figures out, by way of a hidden field, that it should be checking submitted data and, if there are errors, display them and redisplay the form.
If the data is 'clean' I've got a header statement which should redirect to a confirmation page.
But
If the data is clean, instead of redirecting, I get the folowing error:
Warning: Cannot modify header information - headers already sent by (output started at /home/balloo2/public_html/Flights.php:9) in /home/balloo2/public_html/FlightsCentre.php on line 84
Flights.php is the 'main' page which includes FlightsCentre.php - line 84 in FlightsCentre.php is the header statement.
Any help greatly appreciated.