in reply to How to check value of checkbox on form submit?
with the HTML set like the others have suggested, giving a value of "on" to the checkbox named "checkbox1".#!/usr/bin/perl -w use CGI; use strict; my $page = CGI::new(); my $input = $page->param('checkbox1'); if ($input eq 'on') { # do something } else { # do something else } exit (0);
|
|---|