ecember 2004 13:07
To: S.D.Price
Subject: Re: [PHP] Refreshing page after form submission
S.D.Price wrote:
> Hi, I have a form which when submitted adds a record to a DB. However
> if the user clicks back it resubmits the same record.
>
> I have tried using cache control to n
S.D.Price wrote:
> Hi, I have a form which when submitted adds a record to a DB. However if
> the user clicks back it resubmits the same record.
When you send out the FORM the first time, create a random unique value:
$token = md5(uniqid());
Store that token in your database in a table.
Include th
Would something like this work
If($_POST['submit']){//add error checking for whatever critical fields
echo "Thank you for filling out my form.\n";
} else {
//display form with a
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo