well, debugging time it is. i wanted to take out the @required variable completely.
so, i wrote this quick little script
#!/usr/bin/perl -w
use strict;
use POSIX qw(strftime);
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
$ENV{'PATH'} = "/usr/bin:/usr/local/bin";
use CGI;
$CGI::DISABLE_UPLOADS = 1;
$CGI::POST_MAX = 1024;
## grab form input
my $query = CGI->new();
my %FORM;
## grab form field and stick values in hash
my @formfields = $query->param;
for my $field(@formfields) {
$FORM{$field} = $query->param($field);
}
print <<EOF;
Content-type: text/html\n\n
<html>
<head>
<title>Missed fields!</title>
<body bgcolor=#FFFFFF>
EOF
for my $i(sort keys %FORM) {
print qq|<li>$i : $FORM{$i}<br>\n|;
}
print <<EOF;
</body>
</html>
EOF
so once again though, i find myself eyeballing the radio buttons.
when running this script, it churns out the values of the form's
input. however, after selecting a couple of radio buttons, the return
is actually null! as though nothing was passed into the hash
at all.
the radio buttons are written via regular html rather than
through cgi.pm. an example of the radio button in the html is as follows:
<td width="215">
<b>
<font face="Arial, Helvetica, sans-serif" size="-1">
Yes
<input type="radio" name="16accounts_receivable_pledge" value="yes">
No
<input type="radio" name="16accounts_receivable_pledge" value="no">
</font>
</b>
</td>
would the duplicate naming of the form field be causing problems?
humbly -c
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.