How do I check if my check box is checked ?
<input type="checkbox" name="remember" value="on"> Remember Me<br>
if($cgi->param($formdata['remember']) eq 'on'){
{
print "checkbox selected";
} else {
print "checkbox selected";
}
that doesn't work, even if I change the condition to:
if($cgi->param('$formdata['remember']') eq 'on'){
<input type="checkbox" name="remember" value="on"> Remember Me<br>
if($cgi->param($formdata['remember']) eq 'on'){
{
print "checkbox selected";
} else {
print "checkbox selected";
}
that doesn't work, even if I change the condition to:
if($cgi->param('$formdata['remember']') eq 'on'){