Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Answer: How do I check if checkbox in the form was checked or not?

by cLive ;-) (Prior)
on Mar 21, 2002 at 18:55 UTC ( #153385=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > How do I check if checkbox in the form was checked or not? - Answer contributed by cLive ;-)

#!/usr/bin/perl -w use strict; my $q = CGI->new(); if ($q->param('check_box_name') { # checkbox was checked } else { # checkbox left unchecked }

cLive ;-)

  • Comment on Answer: How do I check if checkbox in the form was checked or not?
  • Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
belg4mit kicks Perl in the shins, "Unmatched ) in regex; marked by" my ass

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2017-04-25 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (459 votes). Check out past polls.