Re: Clear HTTP POST value
| From: | Torsten Roehr | Date: | Mon, 23 Aug 2004 11:41:09 +0000 |
| Subject: | Re: Clear HTTP POST value | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194458@lists.php.net to get a copy of this message | ||
"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