Re: how does array get passed

From: Date: Tue, 12 Sep 2000 05:50:45 +0000
Subject: Re: how does array get passed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16278@lists.php.net to get a copy of this message
Sonia, As Jeremy mentioned, you could use a combo of serialize/unserialize. However, if you are passing it in a URL string, there is a good chance it could outgrow the manageable state. I *think* URL strings have a 4 kilobyte limit, too. If you need to store data from one page view to another, chances are your best bet is using sessions of some sort. I've developed my own session system I'm happy with, but there is built in PHP support now in PHP 4, too. In any case, there are ways to do it, depending on what your needs are. Hans On Mon, 11 Sep 2000, Sonia Tsui wrote: > Say I want to pass an array variable($my_array) to another http session. How > do I do that? > > <a href="index.php? ..... > > > ---Sonia > > -- Hans Anderson -=- me@hansanderson.com | PHP, SQL Databases, Flash 5 Animation http://www.hansanderson.com | & Programming, Killer Audio Production, http://www.goofiness.com | Search Engines, Brewmeister.

« previous php.general (#16278) next »