here is a simple CGI snippet that should help get you on your way:
#!/usr/bin/perl
use CGI;
$q = new CGI;
# Build some standard web page elements
print $q->header;
print $q->start_html('check box example');
print $q->h1('Check Box Example');
# Build our checkbox. The first parameter is the name, which can be anything you like.
# The second is the checkbox's default state. The third is the value of the checkbox when
# it is clicked (I use 1 because integers are easy to compare, but you really can use
# whatever you like). The forth parameter is the label associated with the check box.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.