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
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;
}
--
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/+/ /;
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
4 matches
Mail list logo