Link to home
Start Free TrialLog in
Avatar of smares323
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.
Avatar of Pravin Asar
Pravin Asar
Flag of United States of America image

One of the easiest solution is
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=true;">
<cfinput type="reset"   value="Reset" name="reset" >
</cfform>
ASKER CERTIFIED SOLUTION
Avatar of onlyamir007
onlyamir007

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial