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 $H
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 $HTTP_GET_VARS['phil'] are already set.
And if register_globals is on, then the global vars $bob and $phil are also
already set.
--
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/+/
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;
}
-
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (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
> ac
5 matches
Mail list logo