If you have control over the query string, just name your variable 'state[]'
and then when it is passed through the query string as:


PHP will see that it is an array and will parse it as such and you can
access the variables as an array.



"We should be taught not to wait for inspiration to start a thing.  Action
always generates inspiration.  Inspiration seldom generates action." - Frank

> ----- Original Message -----
> From: "Diana Castillo" <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 6:42 PM
> 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

Reply via email to