You are here: Refresh button « PHP Programming Language « IT news, forums, messages
Refresh button

Posted by coder on 10/15/07 15:14

I have what is probably a simple question. In a form I get the variables
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?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация