Click to See Complete Forum and Search --> : Multiple entries onSubmit for e-commerce site


gojill
10-28-2003, 01:56 PM
Hi,

I have recently developed an e-commerce site for the government where the public can pay their traffic tickets online. Since it's inception a week ago we are getting several duplicate payments most likely from the result of users double clicking vs. single clicking the submit button. Can someone provide me with a good solution for this or tell me how to write a function to only allow a single click to this button. I would really appreciate it.

Thanks,

Jill

halifaxrick
10-28-2003, 02:25 PM
There may be a much better way, but what you could use as a stopgap is to have the submit button also have an onclick property.

the onclick would open a window or alert that says thankyou for paying the fine please wait. That way it would deter users from double-clicking, and also take the active window away from the submitted form.