Pass an array using GET or POST?

From: Date: Thu, 22 Jun 2000 23:36:30 +0000
Subject: Pass an array using GET or POST?
Groups: php.general 
Request: Send a blank email to php-general+get-2720@lists.php.net to get a copy of this message
Is there any way to pass an array from one page to another using GET or POST? ie: <? $array = array("test", "foo", "bar"); ?> <form action="blah.php3" method="POST"> <input type="hidden" name="array" value="<? echo $array; ?>"> <input type="submit"> </form> I've tried this, I've tried serialize($array);, etc. etc. I'd rather not go to the trouble of setting up a MySQL connection or writing to a file if I can avoid it. TIA, Scott Nicholson scottn@pnx1.com

« previous php.general (#2720) next »