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

2001-12-01 Thread rdkurth

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:[EMAIL PROTECTED]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: php-list-
Se [EMAIL PROTECTED]
 
 
 




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-12-01 Thread Robert Samuel White

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
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:[EMAIL PROTECTED]
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: php-list-
Se [EMAIL PROTECTED]
 
 
 




-- 
Best regards,
 rdkurthmailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]