To form an array of values in the GET string append brackets to the end of each variable name...
http://www.archipro.com/test.php?state[]=AB&state[]=BC for($i=0; $i<count($state); $i++) { echo $state . "<br>"; } Result: AB BC Hope this helps. :) -Kevin -----Original Message----- From: Diana Castillo [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 9:42 AM To: [EMAIL PROTECTED] Subject: [PHP] passing array of variables in a query string I was wondering if someone could help me with this: what I need to know is how to pick up an array of variables from a query string such as: http://www.archipro.com/test.php?state=AB&state=BC If I use $state, I get only the last one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php