Re: Can a script run twice?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lester Caine wrote:
I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice.

Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created it. 99.99% of the time no problems, but just now and again there are two records, with different primary keys - so the database bit worked - but with very close now times and identified as being at the same counter. The next page does not have the 'Add Ticket' button, so it would seem the first script was trigger twice?

Am I simply going mad ( which is the logical choice ;) ), or is this something that can happen and needs to be handled?

OK this is getting interesting.

I could not believe that double clicking a link would run the link twice. It just does not make any sense. So I've been round the browsers. 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 :(

--
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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux