Re: checkbox objects returning false for isset() when submitted via a form.
| From: | Chris Wesley | Date: | Tue, 01 Oct 2002 20:21:59 +0000 |
| Subject: | Re: checkbox objects returning false for isset() when submitted via a form. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118425@lists.php.net to get a copy of this message | ||
On Tue, 1 Oct 2002, DonPro wrote:
> Within my form, I have some checkbox objects. If I check them and submit my
> form, isset(variable) returns true. However, if I do not check them and
> submit my form, isset(variable) returns false.
> I am confused as I though that isset() returns true if the variable exists
> regardless if it is empty or not. Is there a way to do what I want?
Checkbox values are only sent if they are "on" (checked).
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.2
~Chris