RE: [PHP] Redirect then error message to user
| From: | Stuart Felenstein | Date: | Fri, 22 Oct 2004 17:31:58 +0000 |
| Subject: | RE: [PHP] Redirect then error message to user | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200107@lists.php.net to get a copy of this message | ||
Now why didn't I think of that ! Thank you Jay!
Stuart
--- Jay Blanchard
<jay.blanchard@niicommunications.com> wrote:
> [snip]
> {
> header("Location:
> http://www.xxxxxx.com/page1.php"
> );
> print "You have errors";
> exit;
> }
>
> }
> [/snip]
>
> You either need to carry info about the error in a
> session variable or
> url string or something...above your redirect
> happens before any error
> can be sent to the browser....
>