Re: Can a script run twice?
| From: | Richard Lynch | Date: | Tue, 23 May 2006 21:14:34 +0000 |
| Subject: | Re: Can a script run twice? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236757@lists.php.net to get a copy of this message | ||
On Tue, May 23, 2006 1:08 pm, Lester Caine wrote:
> IE does NOT process the link twice how ever I try and since all the
> user
> sites are IE they should be OK.
> Moz, Firefox and Sea Monkey *DO* run the link twice, and any code
> attached to that link.
> I can't believe that this has not surfaced before. I should not need
> to
> prevent duplicate actions, but it looks as that is required by the
> Mozilla browsers :(
I can't believe IE has so little faith in its users' that it blocks
double-click on a form button... Oh, wait. It's MS.
Look, just dump out a uniqid() when you send the form and log that ID.
Only accept *ONE* INSERT per ID.
Done.
--
Like Music?
http://l-i-e.com/artists.htm