Re: Sending arrays from page to page

From: Date: Thu, 17 Nov 2005 15:44:58 +0000
Subject: Re: Sending arrays from page to page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-225987@lists.php.net to get a copy of this message
On Nov 15, 2005, at 12:07 PM, Ben Miller wrote:
I am trying to learn how to work with arrays, and have the basic concept down for working within a single page, but I am having trouble sending an array from one page to another. For example, I can send a variable from page to page using either the URL, such as www.domain.com/?foo=bar, or using a form, but can I send an array from one page to another using a form so that all the values in the array will be sent?
[snip] If you don't want to use session variables (as already suggested), you can serialize the array, then send as a hidden form value: <http://us2.php.net/manual/en/function.serialize.php> You may need to also encode the serialized value: <http://us2.php.net/manual/en/function.base64-encode.php> HTH -- Lowell Allen

« previous php.general (#225987) next »