Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am a complete beginner. I'm using perl to do research for my Master's, and, uh... I'm a little lost. Not quite sure how this code parses from an HTML form if there's a radio button on it. Any help would be most appreciated. -thomasif ($ENV{'REQUEST_METHOD'} eq 'POST') { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $contents{$name} = $value; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: quickform for beginner
by Zaxo (Archbishop) on Sep 20, 2001 at 03:47 UTC | |
by Anonymous Monk on Sep 20, 2001 at 04:26 UTC | |
|
Re: quickform for beginner
by blakem (Monsignor) on Sep 20, 2001 at 03:41 UTC |