in reply to Passing params to a php file via perl cgi script.

According to HTTP specs, you should URL encode the parameters value, in this case the url parameter:
sub url_encode { my $string = shift; $string =~ s/([^a-z0-9_.!~*'() -])/sprintf "%%%02X", ord($1)/egi; $string =~ tr/ /+/; return $string; }
But if you type this url in a browser, it should be encoded for you. My guess is that your problem has something to do with url encoding in the browser or url decoding in your script.

Replies are listed 'Best First'.
Re(2): Passing params to a php file via perl cgi script.
by dmmiller2k (Chaplain) on Jan 20, 2002 at 05:53 UTC

    Another good approach. Although, as I suspect in this case, the URLs are being entered by hand into a browser.

    dmm