Re: sending array
| From: | Foong | Date: | Wed, 15 Jan 2003 12:49:09 +0000 |
| Subject: | Re: sending array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131694@lists.php.net to get a copy of this message | ||
I am not sure you can do it way, here is what i suggest
test2.php?org[index-A]=<?php $org['index-A'] ?>&org[index-B]=<?php
$org['index-B'] ?>......
you need to specify each var in you array in the query path.
Danielle Van Gladbach <gladbach@ict.tno.nl> wrote in message
news:3E255B1C.144F73C9@ict.tno.nl...
> Hi,
>
> I am trying to send an array from one php to another:
>
> $org["index-A"]=17010000;
> $org["index-B"]=12090000;
>
> print "<a
> href=\"test2.php?org=".$org."\">test2</a><BR>\n";
>
> But if I try to read te array in test2.php, I get "Warning: Variable
> passed to each() is not an array ".
>
> Can anyone help me????
> Danielle
>
>