Re: Can a script run twice?
| From: | Lester Caine | Date: | Tue, 23 May 2006 20:57:37 +0000 |
| Subject: | Re: Can a script run twice? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236755@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
You have users who "double-click" on their submit button. Deal with it. :-) Add a token to the form and mark it "used" in the database on first submit.As I have indicated - the code SHOULD have delt with it - that is part of the problem :( I just had not anticipated a browser splitting double click into two single clicks :) But I'm now looking at other ways of flagging the 'second page' so that it knows that it is already being handled. That way I will not need to do so much work everywhere else in the code base. ;) -- Lester Caine - G8HFL ----------------------------- L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php