Double Posting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hawkeye177
Forum Newbie
Posts: 8
Joined: Wed Nov 27, 2002 7:41 pm

Double Posting

Post 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
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post 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.
Post Reply