Re: How to make sure a redirect works
| From: | trlists at clayst dot com | Date: | Wed, 10 Mar 2004 13:30:46 +0000 |
| Subject: | Re: How to make sure a redirect works | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180014@lists.php.net to get a copy of this message | ||
On 10 Mar 2004 Henry Grech-Cini wrote:
> My question is are there problems with:
>
> <?php
> header("Location: ".$url[$index]);
> ?>
As long as no other headers have been sent that should work fine.
Location: is the standard method for redirection -- I'm not aware of
any circumstances in which it won't work. Perhaps others are.
If you output a location header then I don't know what the browser will
do with text sent after that. Hopefully nothing!
--
Tom