in reply to (tye)Re: Problems with ;'s
in thread Problems with ;'s

In case people wonder what the PHP equivalent of CGI's escape is, it's urlencode. So if we PHP-ify tye's code it might go a little something like this
$QSTRING = $QUERY_STRING; $hpv =& $HTTP_POST_VARS; if(is_array($hpv) && count($hpv) > 0) foreach($hpv as $key => $value) $QSTRING .= '&'.$key.'='.urlencode($value);

HTH

broquaint

Replies are listed 'Best First'.
Re: Re: (tye)Re: Problems with ;'s
by LostS (Friar) on Nov 10, 2001 at 00:12 UTC
    YOU RULE!!!
    That works beautifully... Now I did have to so a s/\"/"/g and s/\'/'/g and a s/\\\\/\\/g but over all it works great now :)

    -----------------------
    Billy S.
    Slinar Hardtail - Guildless
    Datal Ephialtes - Guildless
    RallosZek.Net Admin/WebMaster
    Aerynth.Net Admin/WebMaster

    perl -e '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat! +\n"; } else { print "Thats a dog\n"; } print "\n";'