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:[EMAIL PROTECTED] 
Sent: den 23 augusti 2004 13:41
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Clear HTTP POST value

"Nicklas Bondesson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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

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

Reply via email to