in reply to Trying to write a CGI script for this piece of HTML
I agree with IlyaM and couldn't have put it much better myself. However if you really want to unencode urls right this bit of code.
# This is from the CGI programming with perl book on page 21 sub url_decode { my $text = shift(); $text =~ tr/\+/ /; $text =~ s/%([a-f0-9][a-f0-9])/chr( hex( $1 ) )/eg; }
Edited by footpad, ~Tue Nov 27 06:31:02 2001 GMT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Trying to write a CGI script for this piece of HTML
by chromatic (Archbishop) on Nov 27, 2001 at 08:50 UTC |