Re: Disable refresh?
| From: | phpnew_bocket | Date: | Mon, 02 Dec 2002 09:04:25 +0000 |
| Subject: | Re: Disable refresh? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126686@lists.php.net to get a copy of this message | ||
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 the
page ... hence the session method should work fine
good luck !
--- Larry Brown <larry.brown@dimensionnetworks.com>
wrote:
> 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
>
=====
+------------------------------------------+
|Wana Know what ISLAM is all about ? |
+------------------------------------------+
visit : http://www.sultan.org/#int
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com