You are here: Re: How to keep <form> from re-submitting on page refresh... « PHP Programming Language « IT news, forums, messages
Re: How to keep <form> from re-submitting on page refresh...

Posted by larry on 08/03/07 01:53

I have a session array variable that stores the name(ID) of the form
and a time stamp of when the form was created (this ID and time stamp
is POST hidden on the form as well.) If I get a POSTed form I check
the POSTED ID and time stamp with the Session value, if they match it
is a valid update (if the from is valid and action taken I end by
erasing the the session ID/timestamp value.)

If the from POST and session do not match it is an unregistered POST
and automatically headers back to a previous menu.

This saves from errors of opening multiple windows as well as
resubmission when using the back button.

Larry

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация