Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by plaid (Chaplain)
on May 10, 2000 at 20:30 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found