in reply to cgi script does not pull the values from the radio buttons
<input type=radio name="dashboard" id="dashboard2" value="">2
Here, if someone clicks this button, the value assigned is blank (value=""). It seems like you're using id the way you really wanted to use value...
Is there a reason why you're not using CGI.pm to generate your form code?<input type="radio" name="dashboard" value="dashboard1">1 <input type="radio" name="dashboard" value="dashboard2">2 <input type="radio" name="dashboard" value="dashboard3">3 <input type="radio" name="dashboard" value="dashboard4">4 <input type="radio" name="dashboard" value="dashboard5">5
my %radio_field_values = ( 'dashboard1' => 1, 'dashboard2' => 2, 'dashboard3' => 3, 'dashboard4' => 4, 'dashboard5' => 5, ); print radio_group( -name => 'dashboard', -labels => \%radio_field_values, -values => [ keys %radio_field_values ], );
|
|---|