RE: Re[2]: [PHP] Preventing a form from being submitted twice

From: Date: Sat, 01 Dec 2001 10:59:50 +0000
Subject: RE: Re[2]: [PHP] Preventing a form from being submitted twice
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76314@lists.php.net to get a copy of this message
Well, that's kinda hard to do. You should start by looking at the session management functions of PHP. Then, track your sessions by creating a table in a database. Then, once you are doing that...you will have a session id associated with any individual using your website. Once that individual submits an entry, save the session id with the order and don't allow them to submit another order since their session id is already stored. -OR- If you only want them to be able to submit ONE ORDER EVER, then create a cookie on their computer (that lasts for a year) once they have completed the transaction and check for the cookie every time someone tries to submit an order. IF the cookie exists, then prevent the order from processing. Hope this helps. -----Original Message----- From: rdkurth@starband.net [mailto:rdkurth@starband.net] Sent: Saturday, December 01, 2001 4:51 AM To: php-general Subject: Re[2]: [PHP] Preventing a form from being submitted twice could you give me a few more words to point me in the right direction Saturday, December 01, 2001, 1:41:49 AM, you wrote: Se> Two Words: Session Management >> How can I prevent somebody from using the back button after they fill >> in a form and it takes them to a second page that checks there data >> using php code. I don't what them to be able to resubmit the info a >> second time with different information to be able to get the data >> that they are buying. Hope this makes since to what I am asking >> >> >> >> -- >> Best regards, >> rdkurth >> mailto:rdkurth@starband.net >> >> >> -- >> 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- Se> admin@lists.php.net >> >> >> -- Best regards, rdkurth mailto:rdkurth@starband.net -- 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 (#76314) next »