checkbox

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 14.  The CGI.pm Module


checkbox

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

Generates a single checkbox.

name

The name to assign the input to (required).

checked

Checkbox should be checked initially.

value

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

label

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  ',                           -checked=>'  checked  ',                           -value=>'  value  ',                           -label=>'  label  ',                           -onClick=>  function  ); 
onClick=> function

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


Team-Fly    
Top


Webmaster in a Nutshell
Webmaster in a Nutshell, Third Edition
ISBN: 0596003579
EAN: 2147483647
Year: 2002
Pages: 412

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net