Not sure if this should go to Coding of here...this is more of a discussion and I don't have any code to be fixed per se...
I know that with javascript you can stop something from being submitted twice but how can this be done using straight up PHP? Does anybody have a good technique for it?
It seems to me that it would need to be some kind of cookie or a session var that states the last time something was submitted and if it was within a second or two then it would ignore it...but it doesn't seem very elegant. The problem is that if you ignored the second one the system might just end up in limbo...negating the first submit...
I have this idea that if you could check if a $_POST already exists (oh, perhaps with a $flag var or something) then you could shut down the second one. But, this still negates the actions of the first one...hmmm...
Additionally, if you have a web app then it's possible that people could be click rather quickly (but one second is probably a safe thing).
Any tips out there...?