I am trying to prevent a form's save button from being clicked twice. When I set onsubmit='save.disabled=true'
in the form's tag, the button is disabled when submitted but the POST data no longer contains the "Save" key and value. Since I have multiple buttons on the form, I need to know which one was clicked. Is there another way to disable the save button without this side effect?
<form method='post' action='dosomething.php?' enctype='multipart/form-data' onsubmit='save.disabled=true'>
... input types & Other buttons ...
<input type='submit' name='save' value='Save'>
</form>