Having spent a fair time searching these forums for information on headers it seems to me that this is one of the big problem areas and the more I read the more confused I am getting!
Anyway my problem -
I have a script in which I write to a variable the next page that I want to go to depending on the result of the processing - no problem with this.
At the end of the script I have the line
header ("Location:$next");
but whenever the script is run I get the following error
Warning: Cannot add header information - headers already sent by (output started at d:\htdocs\walks\book_process.php:37) in d:\htdocs\walks\book_process.php on line 63
Line 63 is the line that contains the header.
The reason that I am trying to use a header is that I need to be able to pass variables to the next page otherwise I could use include().
can anybody help me with this problem either by suggesting where I am going wrong or an alternative way of handling this problem?