Visual Basic (1)
Avoid that a HTML FORM is submitted twice
10 comments. Current rating: (4 votes). Leave comments and/ or rate it.
Question:What is the best way to make sure a user does not submit a form twice?
Answer:The easiest way: Disable the submit button in the onclick() event. See the code for that in the box below.
You can also put some code in the form's onsubmit() event, as the second code snippet shows.