Page 1 of 1

Help with browser refresh

Posted: Fri Nov 14, 2008 10:56 am
by mijreed
My website has a form you can enter a blog into. How do you stop someone from just hitting the refresh on the browser and putting up the same post over and over?

I was using a session variable to compare the string previously posted to the one currently being sent through the browser but this seemed very inefficient.

Re: Help with browser refresh

Posted: Fri Nov 14, 2008 12:36 pm
by mijreed
Just figured it out. So simple.

I just sent a header() function with the URL to same page after the mysql_query function. This cleared out the HTTP variables so a refresh didn't do anything.