Re: passing arrays
| From: | Miguel Cruz | Date: | Thu, 23 May 2002 19:57:40 +0000 |
| Subject: | Re: passing arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98982@lists.php.net to get a copy of this message | ||
On Thu, 23 May 2002, wm wrote:
> 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?
<a href="whatever.php?myarray=<?= urlencode(serialize($myarray)) ?>">
Then in whatever.php:
$myarray = unserialize($_GET['myarray']);
miguel