Re: Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?
| From: | Ashley Sheridan | Date: | Fri, 28 Aug 2009 13:39:38 +0000 |
| Subject: | Re: Error when execute header('location: otherpage.php') after email been sent out. Any Workaround? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297408@lists.php.net to get a copy of this message | ||
On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote:
> Actually there aren't a safe way to make a redirect....
>
> We have 4 alternatives (correct me if I miss anything) to do a safe
> redirection.
Erm wtf?!
The best bet is always going with a header() redirect. The only time
I've seen that fail is when the developer of the PHP script has made a
mistake. The browser should always honor this type of redirect, and you
have none of the issues with Javascript turned off, browser plugins
blocking redirects, or stupid users etc.
Thanks,
Ash
http://www.ashleysheridan.co.uk