This isn't quite what you are asking, but maybe it will be of help. Use the
loop below to create and assign GLOBAL versions of the $HTTP_POST_VARS:;

reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
      $GLOBALS[$key] = $val;
}

Kirk

> -----Original Message-----
> From: Jason [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 14, 2001 1:32 PM
> To: Php-General
> Subject: [PHP] Easily Making Post Vars Session Vars
> 
> 
> Hi,
> 
> So, is there anyway to assign $HTTP_POST_VARS to a session 
> array holding the
> same values without assign each variable one by one (there 
> are a ton of
> variables).
> [snip]
> I tried doing something like this and it didn't seem to work:
> session_start();
> if(!isset($custinfo)) {
>   session_register("custinfo");
>   $custinfo = array();
> }
> $custinfo = $HTTP_POST_VARS;
> 
> 
> So, it doesn't appear it will be that easy. Anybody have any 
> hints on doing
> this?
> 
> Thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to