I get this error: "Cannot add header information - headers already sent by ..."
Jan 24th, 2005 23:56
Thadeus Joseph, Virgilio Cantu, Rick Jolly,
change your code to:
and then you can use the header function from anywhere in your file to
redirect. This will not generate any errors.
Headers must be sent before anything else. Be sure you don't even have
spaces before <?php and after ?> tags. You can use the headers_sent
function to test whether it's safe to send more headers. Also check
output buffering functions in PHP manual for advanced applications.