Re: How can I fix that

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux