Re: passing arrays
| From: | Nathan | Date: | Thu, 23 May 2002 19:56:17 +0000 |
| Subject: | Re: passing arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98981@lists.php.net to get a copy of this message | ||
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