I guess this question should have been asked a thousand times... but searching for $_post doent get me anywhere.
i am using php5... and i have asimple question:
when does $_posted is updated/destroid?
like...
if I
$_POST["foo"]="you dude";
then redirect to other script... then do stuff without touching $_POST... then redirect to some other...
can i still access $_POST ?
$_POST usage... little rookie help
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
It depends on how you do the redirection and can be affected by the browser involved as well. Header redirection, some browsers will continue to pass the post data along, some will not. With meta or page level redirection the data will be lost on subsequent pages. It is suggested that one should use the session variable system to keep the data on the server (and use meta/page level redirection) so the user's browser doesn't have to send the data over and over when it's not getting used.pedrotuga wrote:then redirect to other script... then do stuff without touching $_POST... then redirect to some other...
can i still access $_POST ?