RE: Clearing POST variable on page refresh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-12-18 at 09:34 -0500, Brad Fuller wrote:
> > -----Original Message-----
> > From: Jochem Maas [mailto:jochem@xxxxxxxxxxxxx]
> > Sent: Monday, December 18, 2006 3:39 AM
> > To: Beauford
> > Cc: PHP
> > Subject: Re:  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.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux