Re: header("Location: page.php") not redirecting
| From: | Curt Zirzow | Date: | Mon, 01 Dec 2003 21:53:40 +0000 |
| Subject: | Re: header("Location: page.php") not redirecting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171500@lists.php.net to get a copy of this message | ||
* Thus wrote rogue (rogue@mail.rightcode.net):
>
> $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");
You're error_reporting is too low, set it to something like:
error_reporting(E_ALL);
before the header() call
Curt
--
If eval() is the answer, you're almost certainly asking the
wrong question. -- Rasmus Lerdorf, BDFL of PHP