header("Location: page.php") not redirecting
| From: | rogue | Date: | Mon, 01 Dec 2003 21:17:58 +0000 |
| Subject: | header("Location: page.php") not redirecting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171498@lists.php.net to get a copy of this message | ||
Hi all,
I have this in a template:
$redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar";
header("Location: $redirect");
Only, nothing happens when this code is executed. Nothing. It gets completely ignored.
I even tried:
$redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar";
echo $redirect;
header("Location: $redirect");
to try and throw an error, but all that happens is the value of $redirect gets sent to the screen and then rest of the page is displayed. I know the code block is getting executed, but I have no idea WHY the header() function is not doing its job.
Any thoughts? Please CC me on the post since I am on the digest.
Thanks