Re: How to unset a post variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Apr 2005 14:08:36 +0200, Mario de Frutos Dieguez <marfru@xxxxxxxxx> 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 because 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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux