RE: [PHP] Re: registering $_REQUEST variables as session variable s.

From: Date: Mon, 11 Mar 2002 18:04:07 +0000
Subject: RE: [PHP] Re: registering $_REQUEST variables as session variable s.
Groups: php.general 
Request: Send a blank email to php-general+get-88054@lists.php.net to get a copy of this message
So because I'm a little dense, would that register the whole $_REQUEST array as a session variable? Or just 'from_form' ? Thanks, Zara -----Original Message----- From: Julio Nobrega Trabalhando [mailto:inerte@hotmail.com] Sent: Monday, March 11, 2002 12:09 PM To: php-general@lists.php.net Subject: [PHP] Re: registering $_REQUEST variables as session variables. $_SESSION['from_form'] = $_REQUEST; -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Zara E Gonzalez" <gonzalze@mail.slh.wisc.edu> wrote in message news:816EFCC70BCAD411B44D0090278F18410510DF@slhmailehd.slh.wisc.edu... > Hullo, > > I was just wondering if anyone knew an easy way to register all $_REQUEST > variables as session variables. > > Or if there's not any easy way to do that, if there is an easier way than doing > it this way for each variable: > > $a = $_REQUEST['a']; > session_register("a"); > $b = $_REQUEST['b']; > session_register("b"); > > etc > > I have a bunch of form variables that I need to set as session variables, but > I'm not sure if there is an easy way to do so or not. > > I tried: > session_register("$_REQUEST['a']"); > > but that didn't seem to work... > > any help is appreciated, > > Zara -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#88054) next »