Re: Formbuilder refuses to save checkbox value

From: Date: Tue, 03 Jan 2006 19:44:53 +0000
Subject: Re: Formbuilder refuses to save checkbox value
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22422@lists.php.net to get a copy of this message
On 1/2/06, roland cruse <crusester@gmail.com> wrote: > > I'm not sure what else you can check. Booleans were working fine the > > last time I checked... > Oh dear. I could use an enumerated type, true and false as strings. > But the dataobject needs to work with both sqlite and mysql and I > think I saw that enumFields and enumOptions might not work with > sqlite. > If you use enumOptions the enum support should work with anything (even a normal text field). If you want FB to pull the enum options on its own it may not work with other DBs. I wrote that to work with mysql and haven't tested it with anything else. There's also an enumOptionsCallback which you can set with your own function which returns the enum options for a field. Booleans should work fine, however. In fact, I have just tested it myself and my boolean field is keeping its value fine. -- Justin Patrin

« previous php.pear.general (#22422) next »