in reply to Passing params to a php file via perl cgi script.
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.sub url_encode { my $string = shift; $string =~ s/([^a-z0-9_.!~*'() -])/sprintf "%%%02X", ord($1)/egi; $string =~ tr/ /+/; return $string; }
|
|---|
| 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 |