Page 1 of 1

Refresh after form submit problem.

Posted: Sat May 16, 2009 4:57 am
by fenix1987
Here is my problem.

When i submit a form in php, after a query is executed and press the refresh button and will be given a confirmation, if choose yes the query will be re-executed so what i wanted is if there is a way that when you press refresh, the confirmation will no longer displayed and query will not be executed again. Been having problem with this for a long time. Help would be really appreciated. Thanks!!

Re: Refresh after form submit problem.

Posted: Sat May 16, 2009 5:13 am
by Defiline
You have a billion of variants:

1. Use sessions
2. Use cookies
3. Use timer
4. Do not allow to write into DB the same record
n. ...