How to disable "Submit" button and multiple submissions?
Having problems with a ticket being submitted multiple times?
This article will show you how to disable the Submit button after it has been click and change the text label to Submitting, please wait...
Make a backup copy of your existing index.php file.
Open file index.php in a plain text editor, such as Notepad.
Inside index.php find the first two occurrences of this code:
After this code add:
onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();"
Remember, do this twice - the first two times you find code in step 3.
The final code should look like this:
<input type="submit" onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();"
Save changes, upload the index.php file to your server and test it.
That's it! Now, when your visitors click the "Submit" button when submitting a ticket, the button will be be disabled with the Sending, please wait message until the post is complete.