Re: passing arrays

From: Date: Thu, 23 May 2002 20:08:53 +0000
Subject: Re: passing arrays
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-98984@lists.php.net to get a copy of this message
Sorry, I have my brain set on sessions today... The serialize idea presented suggested by Miguel is a good way to do it. ----- Original Message ----- From: "Nathan" <etherwolf@sopris.net> To: <webmaster@blanktv.com>; "PHP" <php-general@lists.php.net> Sent: Thursday, May 23, 2002 1:56 PM Subject: Re: [PHP] passing arrays Da. It will create a 3D array, so you would reference the data via: echo $_GET["myarray"][0]; // returns "one"; echo $_GET["myarray"][1]; // returns "two"; ... Or, if you put this in a form, use _POST instead of _GET. ----- Original Message ----- From: "wm" <webmaster@blanktv.com> To: <php-general@lists.php.net> Sent: Thursday, May 23, 2002 1:49 PM Subject: [PHP] passing arrays hi, is there a way to pass arrays in forms or in the url? if i have $myarray=array("one","two","three"); can i pass the whole array at once as opposed to having to pass each individual element? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#98984) next »