Re: to array or not to array..
| From: | Jake McHenry | Date: | Mon, 12 Jan 2004 22:36:58 +0000 |
| Subject: | Re: to array or not to array.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174381@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Matt Matijevich" <matijevich@alliancetechnologies.net>
To: <epeloke@echoman.com>; <php-general@lists.php.net>
Sent: Monday, January 12, 2004 4:18 PM
Subject: RE: [PHP] to array or not to array..
> [snip]
> That works great, I am messing myself up, however because I am using
> checkboxes so when I run this, if I have unchecked the checkbox, the
> value
> doesn't come through and I want an unchecked box to be 0 for example so
> I
> may need some javascript...
> [/snip]
>
> Can only one option be checked per user (like can add has to either be
> Y or N, it cant be both)? Is it just a yes/no question? If it is, why
> not just use radio input types.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
I just picked up on this thread.. but you can just initialize the variable
as 0, then if the box is checked it will have the new value. What's wrong
with this?
Jake