Welcome to the Monastery | |
PerlMonks |
Re: How to check value of checkbox on form submit?by comatose (Monk) |
on May 10, 2000 at 18:45 UTC ( [id://10958]=note: print w/replies, xml ) | Need Help?? |
Checkboxes don't have values unless you give them one. If they are checked, the name=value pair is sent. Otherwise, IIRC, nothing is sent. So in your HTML, you need: When you receive your form input, "blort" will equal "foo" if checked. If it isn't checked, "blort" will be undefined.
In Section
Seekers of Perl Wisdom
|
|