RE: [PHP] Serialize/URLencode query...
| From: | John Holmes | Date: | Sun, 12 May 2002 07:11:22 +0000 |
| Subject: | RE: [PHP] Serialize/URLencode query... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97196@lists.php.net to get a copy of this message | ||
You should use sessions. All you have to do is call session_start() at
the beginning of your code. Then, any variable you want to save to the
session, you simply use:
$_SESSION["name"] = $name;
Then, on the next page, call session_start() again, and you'll have the
value of $name from the previous page in the variable
$_SESSION["name"]
It's a little different if you're not using PHP 4.2, so read the manuals
on sessions...
---John Holmes...
> -----Original Message-----
> From: Glenn Sieb [mailto:rainbear@optonline.net]
> Sent: Saturday, May 11, 2002 7:57 PM
> To: php-general@lists.php.net
> Subject: [PHP] Serialize/URLencode query...
>
> I'd like to pass a bunch of variables to another PHP page for
processing
> there... I think serialize() and urlencode() will do what I'm looking
> for..
> can I pass multiple strings through this? I'm also not clear on how I
can
> decode the separate strings out...
>
> Can someone point me in the right direction?
>
> Thanks, everyone!
> Glenn
>
> ---
> The original portions of this message are the copyright of the author
> (c)1998-2002 Glenn E. Sieb. ICQ UIN: 300395 IRC Nick: Rainbear
> "All acts of Love and Pleasure are Her rituals"-Charge of the Goddess
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php