There not much in there because I strip it for testing. test1.php <? $org["index-A"]=17010000; $org["index-B"]=12090000;
print "<a href=\"test2.php?org=".$org."\">test2</a><BR>\n"; ?> test2.php <? while (list ($key, $val) = each($org)) { print "key=".$key."val".$val."<br>\n"; } ?> Rick Emery wrote: > show us the test1.php code. > show us the test2.php code. > We can't read your mind. > ----- Original Message ----- > From: "Danielle van Gladbach" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, January 15, 2003 6:59 AM > Subject: [PHP] sending array > > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php