Re: a general perl like pares of the query string...
| From: | CC Zona | Date: | Sat, 08 Sep 2001 12:24:32 +0000 |
| Subject: | Re: a general perl like pares of the query string... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66525@lists.php.net to get a copy of this message | ||
In article <20010908095258.81419.qmail@pb1.pair.com>,
vi2@vi2.com (Aaron Moore) wrote:
> Ok if you have a query string from like file.php?bob=manager&phil=employ
>
> how do i split the bob=manager and phil=employ dynamically?
>
> because i may have 2 or 3 elements and i just want to sepearte them all and
> access them via an array such as if ($var["bob"] = "manager")
If track_vars is on (always true if version >= 4.0.3), then the global vars
$HTTP_GET_VARS['bob'] and $HTTP_GET_VARS['phil'] are already set.
And if register_globals is on, then the global vars $bob and $phil are also
already set.
See <http://php.net/configuration>.
--
CC