[PHP] Re: a general perl like pares of the query string...

2001-09-08 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Aaron Moore) wrote: Ok if you have a query string from like file.php?bob=managerphil=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

[PHP] Re: a general perl like pares of the query string...

2001-09-08 Thread Aaron Moore
Well hers teh perl version of the the parser... how do i convert this to php $tmp = $ENV{'QUERY_STRING'}; @pairs = split(//, $tmp); foreach $item (@pairs) { ($key, $content) = split(/=/,$item,2); $content =~ tr/+/ /; $content =~ s/%(..)/pack(c,hex($1))/ge; $fields{$key} = $content; } --

Re: [PHP] Re: a general perl like pares of the query string...

2001-09-08 Thread Rasmus Lerdorf
http://php.net/parse_str On Sat, 8 Sep 2001, Aaron Moore wrote: Well hers teh perl version of the the parser... how do i convert this to php $tmp = $ENV{'QUERY_STRING'}; @pairs = split(//, $tmp); foreach $item (@pairs) { ($key, $content) = split(/=/,$item,2); $content =~ tr/+/ /;

Re: [PHP] Re: a general perl like pares of the query string...

2001-09-08 Thread Aaron Moore
Wow... ok now i get it.. thanks guys Aaron Moore Michael Kimsal [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Aaron, CC Zona wrote before that: If track_vars is on (always true if version = 4.0.3), then the global vars $HTTP_GET_VARS['bob'] and