Re: General use of rewrite / redirect
| From: | Per Jessen | Date: | Tue, 18 Mar 2008 14:11:18 +0000 |
| Subject: | Re: General use of rewrite / redirect | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271722@lists.php.net to get a copy of this message | ||
Per Jessen wrote:
> My typical setup for a form-page probably looks like this:
>
> if ( $_POST )
> {
> // do POST processing
> header(303 thankyou.html).
> exit
> }
If I wanted the user back on the same form page, but still with a "thank
you" message, I'd still do a 303, but use $_SESSION to indicate that
the user needs a "thank you" message displayed.
/Per Jessen, Zürich