| Programming C# C++ (7) Delphi (618) Java (8) JavaScript (30) Document (8) Events (8) ExtJS (8) Strings (3) perl (9) php (4) VBScript (1) Visual Basic (1) |
Avoid that a HTML FORM is submitted twice
(2 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.
Comments:
|