At 02:41 02.12.2002, Martin Towell said: --------------------[snip]-------------------- >no, no way to disable and no variable to say a refresh happened > >one way to get around it is to submit to the page that does the update, then >get that page to do a header("location...") to another page. When the user >refreshes, they'll only refresh the last page, and not the updating page. --------------------[snip]--------------------
This will not stop the user from hitting the "Back" button and refreshing the form... What I do (and it works flawlessly) is to have a serial number stored in the session data. This serial number, mirrored in form data as a hidden field, is incremented with each klick the script receives. Thus the code handling script input is able to determine if the form it just received is the last form it generated (serial number matches), or is outdated (serial number mismatches), for what reason ever, be it a refresh or the user stepping back and resubmitting. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php