or you could use the method you wrote - /cart.exe?item[1][1]=3
but if you have lots of items then the url will get pretty large...

-----Original Message-----
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 12:34 PM
Subject: Re: [PHP] multi-dimensional array

At 03:41 PM 12/5/2001 -0500, Jordan wrote:
>Is there any way to pass a multi-dimenstional through a url.  something
>just curious.

I haven't personally done this myself, but theoretically you could 
accomplish this by first using the serialize function:


Then using url_encode on the results and passing that in the URL parameter.

Then on the other page you want to unserialize it:


I haven't personally used this function for anything yet, but it looks like 
it should work fine...

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to