Полезная информация

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: buttonChapter 10
The CGI.pm Module
Next: Reference: checkbox_group


 print $query->checkbox('name' [,'checked','value','label'])

Generates a single checkbox.


The name to assign the input to (required).


Checkbox should be checked initially.


The value to return when checked (default is on).


The label to use for the checkbox (default is the name of the checkbox).

Using named parameters, the syntax is:

print $query->checkbox(-name=>'name',


Browser should execute function when the user clicks on any checkbox in the group.

Previous: Reference: buttonPerl in a NutshellNext: Reference: checkbox_group
Reference: buttonBook IndexReference: checkbox_group