Re: Expire data from form

From: Date: Sun, 18 Mar 2001 21:58:40 +0000
Subject: Re: Expire data from form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44471@lists.php.net to get a copy of this message
Sheni, I needed to do a similar thing as this. When creating the form have a hidden value which is the current time. The when procesing the form check the time. If its to old just say page expired. I found this worked fine. Hope this helps. Paul ""Sheni R. Meledath"" <sheni@cyber-gear.com> wrote in message news:5.0.0.25.2.20010318114641.01f1c2f0@cyber-gear.com... > Hi, > > I have set up a form to register the users to the site. The users are > allowed to register only once. When the user submits the form the same > script will check the validity of the form and displays error messages and > if okay, updates the database. > I want to set up an option in the form in which when the user once submits > and after that if they click on the back button (browser back) it should > say the 'page expired' as I have seen with some Perl scripts. The users > should not be allowed to go back to the page and resubmit. Can any body > suggest a way to accomplish this. > > thanks > Sheni R Meledath > sheni@cyber-gear.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#44471) next »