Re: preventing page from resubmitting when refreshing page

From: Date: Thu, 09 Jan 2003 17:32:06 +0000
Subject: Re: preventing page from resubmitting when refreshing page
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24708@lists.php.net to get a copy of this message
> Is there something i can do on browser refresh to prevent this or prevent my > mysql database from duplicating the records? Instead of using INSERT in your query use REPLACE INTO. Alternately, after you are done processing the form, do this: header( "location: $PHP_SELF?$QUERY_STRING" ); exit() So the page will redirect to itself and it'll be like you went to it the first time. These are just two of I'm sure the many other options what will come through. Chris

« previous php.db (#24708) next »