Re: Dealing with multiple form submissions

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

 



On Aug 23, 2011, at 9:04 PM, Jason Pruim wrote:

> Hey Everyone,
> 
> Wondering what everyone does to prevent multiple form submissions? 
> 
> My form is simply getting emailed to my email, and it redirects to a success page when submitted...
> 
> Would it be as simple as doing something with the cache control? Basically I'm trying to avoid someone submitting a form... Then hitting back, and submitting again, then hitting back.... I think you get the idea...
> 
> What do you all do?
> 
> Thanks!
> 
> 
> Jason Pruim
> lists@xxxxxxxxxxxxxxxxxxxx
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

Cookies are always a great start!

On success, set a cookie, and if they access the form and cookie is set, redirect automatically to the thank you page.

Mike
-- 
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