Re: Forwarding $_POST[]...

From: Date: Thu, 09 Aug 2007 18:11:23 +0000
Subject: Re: Forwarding $_POST[]...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260525@lists.php.net to get a copy of this message
Session variables is a decent way. Storing them in a DB session can be good too It all depends on the data. The dumbest (but still correct) way to do it is a for() loop that creates a hidden input with the name/value pair for each variables you want. I would advise against resending the username/password over and over. Simon On 8/9/07, Tony Di Croce <dicroce@gmail.com> wrote: > I keep wanting to do something, and either I dont know how to do it, or I'm > doing something wrong and need to rethink things. > > Quite often, I have a form that submits to a php script via POST and after > doing some processing (or more frequently, asking the user a question), I'd > like to forward those $_POST[] vars to another script (or even the same > script). > > I could do something complicated and store the $_POST vars in $_SESSION[], > but what I'd rather do is simply add a var to $_POST[] and resubmit this to > the same .php. > > Is their any way to do this, or do I need to rethink things? > > td > > -- > Publish technical articles @ skilledwords.com and get 100% of the > ad-revenue! > http://www.skilledwords.com >

« previous php.general (#260525) next »