Click to See Complete Forum and Search --> : Flushing the $_POST array ???


DaveinLondon
05-09-2005, 05:37 AM
Hello,

I want to flush out my $_POST array .
:D
eg :

if(some_flag == 'yes')
{
flush the post array
}

After doing the flush / clear/ delete - whatever it is

then, when I do an isset($_POST['something']) it should return false.

Is there a command for doing this ??
Thanks
david.

NogDog
05-09-2005, 10:50 AM
unset($_POST);
(However, it sounds like a sort of kludgy way to do whatever you're trying to do.)

phpindia
07-16-2011, 07:14 AM
unset($_POST);
(However, it sounds like a sort of kludgy way to do whatever you're trying to do.)

unset($_POST) does not work in this situation.

One solution is to redirect the page to same location.

Use this function and add the other value JURI::base() and index.php and require arguments.

:D