Re: sending array

From: Date: Wed, 15 Jan 2003 13:14:29 +0000
Subject: Re: sending array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-131695@lists.php.net to get a copy of this message
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" <gladbach@ict.tno.nl> > To: <php-general@lists.php.net> > 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

« previous php.general (#131695) next »