in reply to How do I read a checkbox from a CGI
READ jeffa's post first but:
<tr> <td align="right">Description of Checkbox</td> <td align="right"><input type="radio" name="foobar" value="0 +" checked> </td> <td colspan="6"><b>No preference.</b></td> </tr>
And call it with:
my $foobar = param('foobar'); die "Invalid datatype for foobar" if $foobar =~ /[^0-9]/; print "checked\n" if $foobar == 0;
"Pain is weakness leaving the body, I find myself in pain everyday" -me
|
|---|