Re: Preventing repost

From: Date: Thu, 04 Jan 2001 14:21:08 +0000
Subject: Re: Preventing repost
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5595@lists.php.net to get a copy of this message
Make the page already expired: <META http-equiv="Expires" content="Tue, 01 Dec 1990 06:30:00 GMT"> If you are worried about the form data being reposted (even if it's the same) this would not prevent them from hitting their reload button and resubmitting the form data. The way to avoid this is to include a hidden field that contains a random value which is generated when the form screen is created in PHP. The script that processes the form data should check whatever database you stored your form data into to ensure that that random value has not yet been stored. If so, don't save the data a second time. -- Jamie At 12:50 PM 1/3/01, Dusten wrote:
Hello I need to find a way to prevent a user from hitting 'back' on their browser and reposting the form data. Thanks Dusten


« previous php.db (#5595) next »