Refresh after form submit problem.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fenix1987
Forum Newbie
Posts: 4
Joined: Sat May 16, 2009 4:39 am

Refresh after form submit problem.

Post 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!!
Defiline
Forum Commoner
Posts: 59
Joined: Tue May 05, 2009 5:34 pm

Re: Refresh after form submit problem.

Post 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. ...
Post Reply