How do I check if a checkbox has been checked?
| From: | DonPro | Date: | Fri, 01 Nov 2002 15:47:43 +0000 |
| Subject: | How do I check if a checkbox has been checked? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-122429@lists.php.net to get a copy of this message | ||
Hi,
I have a form with a checkbox like so:
<input type="checkbox" value="ON" name="shipper_save">
When I submit, the value is always shown as "ON" regardless of whether I've
checked the checkbox or not. So this begets the question, How can I code my
PHP form processing script to determine whether the checkbox was checked?
Thanks,
Don