smares323
asked on
Coldfusion 9 Progress Bar
I want to prevent the credit card form from being submitted twice. Maybe display a progress bar and hide the form so that it doesn't get submitted twice.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1. Disable the button once user clicks. This will submit the form only once.
for example:
<cfform name="f1" method="post">
<cfinput type="text" name="ccn"/>
<cfinput type="submit" value="Submit" name="sbt" onclick="this.disabled=tru
<cfinput type="reset" value="Reset" name="reset" >
</cfform>