Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

( #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? 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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-09-16 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (36 votes), past polls