Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Refresh button
October 15, 2007, 3:14 pm
rate this thread
with $_POST and then enter an insert into a database. After doing this, I
set the variable to an empty string. The form displays this empty string.
So far, so good.
If the user now hits the refresh button on the browser, the value of the
variable stays at the old value, not the empty string, so it passes the test
for not empty and another entry is inserted into the database.
How can I prevent this from happening?