You are here: Expiring $_POST variables « PHP Language « IT news, forums, messages
Expiring $_POST variables

Posted by Martin A. Weinberger on 11/19/76 11:25

Hi all,

I'm using a hidden button as shown in the following line to determine upon
entry (or re-entry) to the PHP file, whether or not to process the form
data.

<input type="hidden" name="validateme" value="doit">

The form contains anchor tags to link to other pages. From this point of
view the form works perfectly. The problem is that, when the user goes back
to this page later on, the "validateme" posted variable does not expire, so
the form tries to reprocess the form, even though there is no form to show.
My question is how can I reset the validateme to nothing (""), so that the
user doesn't wind up reprocessing the page upon reentry at a later time.

I'm accessing the validateme using the "$CmdDoIt = $_POST["validateme"];"
line.

Thanks in advance,

--
Martin A. Weinberger
ButterflyVista
http://www.butterflyvista.com/

 

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

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