What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card processing and will click the submit button two, three, or more times causing duplicate orders.
Is there a quick way to disable the submit button at
least in javascript?
<form .... onsubmit="this.submitButton.disabled = true;">
If you have any javascript form checks, disable the button just before returning true from the onsubmit handler.
Better yet, something quick and easy that could be done server-side without a lot of programming like cookies, database flags, etc?
I've thought of a few things (like hidden variables with an order ID or cookies/flags) but this really should be a quick fix since it's not a big problem on the site.
Thanks in advance for any tips or techniques!
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php