RE: [PHP] Clearing POST variable on page refresh
| From: | Robert Cummings | Date: | Mon, 18 Dec 2006 14:52:41 +0000 |
| Subject: | RE: [PHP] Clearing POST variable on page refresh | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245955@lists.php.net to get a copy of this message | ||
On Mon, 2006-12-18 at 09:34 -0500, Brad Fuller wrote:
> > -----Original Message-----
> > From: Jochem Maas [mailto:jochem@iamjochem.com]
> > Sent: Monday, December 18, 2006 3:39 AM
> > To: Beauford
> > Cc: PHP
> > Subject: Re: [PHP] Clearing POST vari
>
> My way of getting around this has been to put the data manipulation into a
> "process" page, which redirects back to the content page when its finished
> processing. That way, when the user hits refresh it doesn't ask to resubmit
> the data. It just refreshes the display.
I've never seen a good implementation of that style. If there's an error
in the form submission then such implementations usually have a generic
error message saying, please go back, or they then need to stuff th
eentire post contents into a session var or favourite deity forbid, into
the URL. It's almost certainly always better to submit to the same page
and move along when the processing is done.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'