RE: [PHP] question about taking post to session

From: Date: Sat, 21 Sep 2002 14:21:27 +0000
Subject: RE: [PHP] question about taking post to session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117095@lists.php.net to get a copy of this message
Sure you can, however, 1) u prob. want $_SESSION['name'] = $_POST['name']; 2) remember that if you are calling this within the scope of a function you will have to use $GLOBALS to declare $name as a global before you utilise session_register. Todd. > -----Original Message----- > From: Randy Johnson [mailto:icgphp@icecoldgold.com] > Sent: Saturday, 21 September 2002 5:10 PM > To: Chris Shiflett; Ramesh Nagendra Pillai > Cc: php-general@lists.php.net > Subject: [PHP] question about taking post to session > > > hello, > > how could i take all the variables in $_POST[""] and move them to > $_SESSION[""]? > > example > > $_POST["name"]=$_SESSION["name"] > > > Thanks in advance > > > Randy > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#117095) next »