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.
Help with browser refresh
Moderator: General Moderators
Re: Help with browser refresh
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.
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.