Re: Forms and destroying values

From: Date: Fri, 12 Jan 2007 08:38:20 +0000
Subject: Re: Forms and destroying values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-246979@lists.php.net to get a copy of this message
Beauford wrote:
Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser.
Perhaps a session variable that is set once the form is submitted. Depending on the data you could also look at having a primary key in the database. You could also have a hidden form variable that has some random value, once used, it cant be used again. clive

« previous php.general (#246979) next »