Home: Perl Programming Help: Beginner:
how to set a checkbox "unchecked" in cgi.pm



ningji
User

Dec 10, 2012, 12:13 PM


Views: 1595
how to set a checkbox "unchecked" in cgi.pm

from online, you can set a checkbox in checked mode using

Using CGI.pm:
$q->checkbox (-name => "somename",
-value => "somevalue",
-checked => "CHECKED",
-label => "label");

now if i want to set it to unchecked mode, what should i change in this line,
-checked => "CHECKED",

thanks !