Re: header function, I'm stumped
| From: | Kelly Hallman | Date: | Tue, 09 Dec 2003 23:57:38 +0000 |
| Subject: | Re: header function, I'm stumped | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172306@lists.php.net to get a copy of this message | ||
On Tue, 2 Dec 2003, Chris Hubbard wrote:
> All, dealing with header("location:...") again. and trying to
> understand what's happening. I've got the following code:
>
> header("Location:http://www.mysite.com/cp/ad/ad_details.php?id=".
> $id);
I'm kinda surprised I didn't see this mentioned.. Have you tried:
header("Location: http://url.redirect/\n\n");
exit; // ?
The browser may be particular about the headers. When you add the two
newlines to the end, it makes it look like the end of the headers.
It's good practice to explicitly exit each time you redirect.
--
Kelly Hallman
// Ultrafancy