You are here: Re: How to unset a post variable « PHP « IT news, forums, messages
Re: How to unset a post variable

Posted by Nieko Maatjes on 10/04/21 11:13

On Fri, 15 Apr 2005 14:08:36 +0200, Mario de Frutos Dieguez =

<marfru@cartif.es> wrote:
> My question is, how can i unset $_POST["buttonNew"] or leave it empty =
=

> because when the user refresh the page make insert commans again becau=
se =

> the $_POST["buttonNew"] arent empty.

The browser sends $_POST, you can't just tell PHP to accept it
the one time, and not the other, unless you use sessions of course.
You might also try to refresh using a "302"-header I think, but I
forgot how it worked exactly. It makes the browser refresh so that
next time the user presses F5 or something the POST-data doesn't
get sent.

-- =

Nieko Maatjes
http://www.nieko.net/

 

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

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