Re: [PHP] Refreshing page after form submission

2004-12-17 Thread Mike Smith
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 input type=submit name=submit value=Save } -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Refreshing page after form submission

2004-12-17 Thread Richard Lynch
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

RE: [PHP] Refreshing page after form submission

2004-12-17 Thread S.D.Price
] 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 no avail : header (Expires: Mon, 26 Jul 1997 05:00:00 GMT); header (Last