Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to check value of checkbox on form submit?

by plaid (Chaplain)
on May 10, 2000 at 20:30 UTC ( #10992=note: print w/replies, xml ) Need Help??


in reply to How to check value of checkbox on form submit?

You might want to take a look at the exists function. It does exactly what you're looking for: tells you if a hash key exists, regardless of what its value is.
if(exists $input{'checkbox1'}) {
This will work regardless of what the value of the checkbox is, as the hash key 'checkbox1' will not exist unless the checkbox is checked.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://10992]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-05-22 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?