When the form is submitted, any submit and reset buttons are disabled. This prevents the user from submitting the form repeatedly, whether by accident or on purpose.
Add the below code to the <body> section of your page:
<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin function
disableForm(theform){ if(document.all||document.getElementById){ for(i
=0;
i <
theform.length;
i++){ var
tempobj =
theform.elements[i]; if(tempobj.type.toLowerCase()=="submit"||
tempobj.type.toLowerCase()=="reset") tempobj.disabled=true;
} alert("Your
form has been submitted. Notice how the submit and reset buttons were
disabled upon submission."); returntrue;
} else{ alert("The
form has been submitted. But, since you're not using IE 4+ or NS 6, the
submit button was not disabled on form submission."); returnfalse; }
}