RE: [PHP] Re: Clear HTTP POST value
| From: | Nicklas Bondesson | Date: | Mon, 23 Aug 2004 11:41:41 +0000 |
| Subject: | RE: [PHP] Re: Clear HTTP POST value | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194460@lists.php.net to get a copy of this message | ||
Didn't work for me (PHP 4.3.9 + Apache 2.0.4). I will try the other method
you suggested.
Nicke
-----Original Message-----
From: Torsten Roehr [mailto:roehr@zilleon.com]
Sent: den 23 augusti 2004 13:41
To: php-general@lists.php.net
Subject: [PHP] Re: Clear HTTP POST value
"Nicklas Bondesson" <nicke@nicke.nu> wrote in message
news:php.general-194455@news.php.net...
> Hi!
>
> Is there a smooth way to clear a posted value on a page? I have tried
> the following without sucess.
>
> unset($_POST["var"]);
> unset($HTTP_POST_VARS["var"]);
>
> Nicke
Hi Nicke,
unset($_POST['var']) *should* work - it works for me (PHP 4.3.8). You could
also do $_POST = array() to reset all values.
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php