Re: Page Reload with after POST request
| From: | Alexander Mueller | Date: | Thu, 23 Oct 2003 13:53:46 +0000 |
| Subject: | Re: Page Reload with after POST request | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167269@lists.php.net to get a copy of this message | ||
Robert Sedlacek wrote:
>
> I don't know such a script, but my preferred way would be to make a
> 'header("Location: $site");' statement right after processing the
> POST-request and lead the user to the site where the changes can be seen.
>
> This also avoids duplicate db-entries and stuff...
>
> Robert
Marek Kilimajer wrote:
>
> After handling the post request and taking the necessery actions (update
> db...), redirect the browser using header('Location: ......');
>
I suppose the browser does not add the redirecting site to its history.
In this case a redirect is really a good idea :). Thanks for this hint
Robert and Marek.
Alexander