Click to See Complete Forum and Search --> : php problem with clearing $_POST['variable']


spx2
11-03-2005, 01:19 PM
im in a page and i have $_POST['numedesters'] with a value.
now if i'm redirected to the same page by a form in the current page
how do i make $_POST['numedesters'] to be '' ?
i tried $_POST['numedesters']='' exactly after using it in the page
and it didnt work.
please help

Choozo
11-03-2005, 02:29 PM
Try unset($_POST['numedesters'])

spx2
11-03-2005, 03:22 PM
it didn't work
where is $_POST information stored
how to delete it before refresh.would it be possible with js?

Choozo
11-03-2005, 03:33 PM
$_POST is an array containing values from the originating <form action="newpage.php" method="post"> element where the array element(s) are the value of your named entries (as you maybe know?).

"it didn't work" doesn't say much, as I don't know where you tried to unset() the array element?

spx2
11-03-2005, 06:17 PM
after the form in the same page i put the unset thing.
it didnt work.

Choozo
11-03-2005, 06:37 PM
Show us the code.

bwkaz
11-03-2005, 07:19 PM
And the results too; more than just "it didn't work". We know it didn't work (that's why you're here ;)), we need to know what it did do.