Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by chromatic (Archbishop)
on May 10, 2000 at 19:24 UTC ( #10969=note: print w/replies, xml ) Need Help??


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

How about:
if (defined ($cb_value = $input{checkbox1}) { # do something } else { # do something less exciting }
That will give you the value, if it's defined, or let you throw an error or rerequest the data, if necessary.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2022-08-11 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?