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
&
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
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-----
>
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
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
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