> Does anybody have any suggestions for preventing users from hitting
> a submit button multiple times?

Try the following JavaScript, and add 'onclick="checkFields()"' to the
Submit button's tag:

var submitcount=0;
function checkFields()
{
        if (submitcount == 0)
        {
                submitcount++;
                return true;
        }
        else {
                alert("Please wait...this form has already been submitted
and is being processed.");
                return false;
        }
}


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to