Visual Basic (1)
New related comments
Number of comments in the last 48 hours
Validating user input in a form
Can I disable the Refresh button in Internet Explorer
Dynamically collapse or expand a section of a web page
Opening a window without a title bar
Avoid that a HTML FORM is submitted twice
11 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.