Re: How can I fix that

From: Date: Mon, 13 Dec 2004 10:37:18 +0000
Subject: Re: How can I fix that
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204145@lists.php.net to get a copy of this message
Aalee wrote:
Hi there everyone... I did a form to add data to a database and it works fine. Once the data is entered its gives a thankyou message. But the problem is, if I refresh this thankyou page, the data is entered again into the database. Why is it doing so. I couldnt think of a way to fix it. Help... cheers refreshing a page means resending the last request to the server. If by any chance that were a GET (usually this one) or POST request, it will resend that. Your php script notices those vars were sent, and (re-)adds the info to the db.


« previous php.general (#204145) next »