Whenever form submitted with media, It will take time to process. Since it require time to upload then process the form.
In this case, If user click this button again, form submit again. Eventually we are having duplicate, sometimes 3/4 form submission happen simultaneously.
Which is not expected.
To get rid such circumstance, we will disable submit button, once user click this button. We can achieve such behavior, using onclick
attribute.
|
|
some people, prefer put this.form.submit();
statement at the end of the attribute value. Which raise issues sometimes. Anyway I preferred to keep it in the beginning.
here is my full submit button code
|
|