Re: Re: db_dataobject_formbuilder and checkbox
| From: | Arne Gellhaus | Date: | Thu, 06 Jan 2005 16:42:48 +0000 |
| Subject: | Re: Re: db_dataobject_formbuilder and checkbox | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16736@lists.php.net to get a copy of this message | ||
Markus Wolff wrote:
Actually, I don't see the value in adding yet another option for boolean fields when this can easily be done with enum. I mean, configuring an enum field to accept only "yes" or "no" is not that hard, and you'd need similar configuration for a boolean field to determine what values it should write into the database anyway (i.e. 0/1 vs. 'Y'/'N' etc.).It is not about the fieldtype in the database but about the presentation to the user. A checkbox field is easier to handle and is the standard way to ask a user for yes/no descisions. I think a select field with only 2 entries is worthless and 2 radio buttons are harder to spot, so i prefer a checkbox. Arne