Page 1 of 1

Double Posting

Posted: Wed Feb 05, 2003 8:20 pm
by hawkeye177
Hi.
One of my scripts that i wrote is having some problems because people are clicking it twice. Is there a way to make the button disappear for a few secs if they already clicked on it? Or something else that would stop it from happening?

Thanks

Posted: Wed Feb 05, 2003 8:33 pm
by hob_goblin
You can use javascript to disable the button. But, what I would do would be, compare the the row being submitted to the last row in the database or file, if they are similar (probably identical with the exception of a date field), then don't add it.