Cut & Paste Block multiple form submission
|
Description: This useful script prevents a form from being inadvertantly submitted more than once, which often occurs if the user clicks on the "submit" button multiple times before the process is complete. The result is partial or multiple submissions. With this script, the submit button is disabled once it's been pressed the first time. To reactivate it, the user is prompted to reload the page. Very practical!
Example: n/a
Directions:
Step 1: Cut and paste the below script into the <head> section of your page:
Step 2: With the script installed, all that remains is modifying your submit button to include the portion in red below:
<form>
"
<input type="submit" value="Submit" onClick="return checksubmit(this)">
</form>