> Am I doing something wrong? Thank you.
You may print nothing before the redirect header!
<?
echo "hello";
header("Location: go");
exit;
#wrong!
?>
<?
<?
header("Location: go");
exit;
echo "hello";
#oke, but "hello" isn't print
?>
?>
----- Original Message -----
From: "phantom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 10:01 AM
Subject: [PHP] PHP Redirect / header("location: ")
> I am trying to set up a redirect scirpt that in ASP was
> response.redirect(escape("newpage.asp")).
>
> I tried in PHP >> header("location: newpage.php")
>
> but all i got was an error message saying that my header content had
> already been sent. This PHP script was above the html script.
>
> Am I doing something wrong? Thank you.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]