I have tried searching this one but I am not too sure what i am looking for.
I have a form. When the submit button is pressed I shoot the form to a page, say formprocessing.php Now I process the form and say if this and if that, I want the page to shoot to another page. Like a redirect.
<?php
if (($Period=="Todays_Forecast") && ($Type=="Table")){header("Location: [url]http://www.domain.com/forecast/Todays_Forecast.html[/url]");}
?>
Now obviously I have a few more options for Period and Type I need to add. But this doesn't work because I get: Warning: Cannot add header information - headers already sent
So how do I do this or is there a better way? Thanks.