Re: [PHP] Disable refresh?

2002-12-02 Thread Marek Kilimajer
Ernest E Vogelsinger wrote: This will not stop the user from hitting the "Back" button and refreshing the form... If the user wants it he can do it even with your method. My point is he don't do it unintentionally, so I use just the Location method -- PHP General Mailing List (http://w

Re: [PHP] Disable refresh?

2002-12-02 Thread phpnew_bocket
you can use a session : - start the session when the form is first sent - destroy the session upon the first valid insert - subsequent upadates will be prevented since the session is destroyed.. usually multiple updates happens when the user hits the submit button several times or upon refreshing

RE: [PHP] Disable refresh?

2002-12-02 Thread Ernest E Vogelsinger
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

RE: [PHP] Disable refresh?

2002-12-01 Thread Larry Brown
t: Re: [PHP] Disable refresh? > Anyone know of a method of preventing a user from refreshing a page. I > get multiple updates with the same information in my database... Hello! You can prevent it multiple ways. Two common solution: - When creating form, add a unique id to it in a hidden fiel

RE: [PHP] Disable refresh?

2002-12-01 Thread Martin Towell
ting page. HTH Martin -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 12:33 PM To: PHP List Subject: RE: [PHP] Disable refresh? If not, is there a variable that provides information that a refresh occurred to load the page? Larry S. Brown Dim

RE: [PHP] Disable refresh?

2002-12-01 Thread Larry Brown
] Disable refresh? Anyone know of a method of preventing a user from refreshing a page. I get multiple updates with the same information in my database... Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Disable refresh?

2002-12-01 Thread Larry Brown
Anyone know of a method of preventing a user from refreshing a page. I get multiple updates with the same information in my database... Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php