RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Peter Beckman
ttype():string > strlen():5 > > > -Original Message- > > From: Peter Beckman [mailto:beckman@;purplecow.com] > > Sent: Wednesday, October 30, 2002 8:57 AM > > To: Ryan Neudorf > > Cc: [EMAIL PROTECTED] > > Subject: RE: [PHP-DB] Session variables and arrays &

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Ryan Neudorf
Here are the results: is_array(): gettype():string strlen():5 > -Original Message- > From: Peter Beckman [mailto:beckman@;purplecow.com] > Sent: Wednesday, October 30, 2002 8:57 AM > To: Ryan Neudorf > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP-DB] Session variables and

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Peter Beckman
nt strlen($_SESSION['categories']); If you get "5", then the variable might be a string with the contents being the word "Array". Pretty doubtful, but we're being thorough here. Peter > Hmph > > - Ryan > > > -Original Message----- >

RE: [PHP-DB] Session variables and arrays

2002-10-29 Thread Ryan Neudorf
October 29, 2002 9:59 PM > To: Ryan Neudorf > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Session variables and arrays > > > Well, can't say I see the same problem: > > $_SESSION['foo'] = array("hi"=>"bye"); > > print_r($_SESSI

Re: [PHP-DB] Session variables and arrays

2002-10-29 Thread Peter Beckman
Well, can't say I see the same problem: "bye"); print_r($_SESSION['foo']); echo "\n\n"; print is_array($_SESSION['foo']); Outputs: X-Powered-By: PHP/4.2.2 Content-type: text/html Array ( [hi] => bye ) 1 Which is what I'd expect it to show. Now how did you assign categories? Maybe the var

[PHP-DB] Session variables and arrays

2002-10-29 Thread Ryan Neudorf
I'm having a problem with session variables and arrays. I'm building a multi step sign up form and I need to store all the variable until the final step, when they are inputed to a database. I thought the best way to do this would be to store the contents for $HTTP_POST_VARS in session variables. T