Posted by milahu on 04/02/06 16:52
Hi,
You may only use header() *before* you output something to the client.
So you can either check the redirect condition before starting output,
or you can use output buffering [1].
The correct code to redirect the user would be
header("Location: $URL");
[1] http://www.php.net/outcontrol
Cheers, milahu
[Back to original message]
|