NZ_Kiwis;10994015 wrote:Yes an alert happens but the disable doesn't!
Worked fine for me; which browser (name & version) and O/S are you using?
NZ_Kiwis;10994015 wrote:Yes I am. I've got a check to see they have enough "points" or "dollars" but I can still sometimes get duplicate orders.
So what's to stop someone from hitting the "back" button and re-submitting the form all over again? Sounds like you should implement some server-side mechanism to make sure that the same form hasn't been submitted multiple times without being re-displayed first.
For example, you could store some random value in a session and in a hidden form element; when you start processing a form submission, check to see if the two values match. If they do, clear out the previous random value (or generate a new one) and process the data. If they don't, abort processing the data and display some sort of error message (if applicable/desired).