passing an array in a link

From: Date: Sun, 11 Aug 2002 10:49:47 +0000
Subject: passing an array in a link
Groups: php.general 
Request: Send a blank email to php-general+get-112005@lists.php.net to get a copy of this message
Hi, all -- I collect field keys in an array that looks like $keylist = array('comment','job','spaced out key name','foo',...) ; and would like to pass the array to myself in a call like print "<a href=\"/myscript.php?keylist=$keylist\">link</a>" ; but when it's actually run it of course says ...keylist=Array... which is quite bad. I'd use a simple scalar $keylist = "comment job spaced out key name foo ..." ; but, of course, those darned fields which have spaces embedded in the names will really mess that up. How can I pass myself an array -- and recognize it on the receiving end? TIA & HAND :-D -- David T-G * It's easier to fight for one's principles (play) davidtg@justpickone.org * than to live up to them. -- fortune cookie (work) davidtgwork@justpickone.org http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#112005) next »