For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] QuickForm: setting checkbox when editing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] QuickForm: setting checkbox when editing
Justin Patrin

2005-05-26, 8:59 pm

On 5/20/05, Stowe, Nola <NStowe@thettgroup.com> wrote:
> Sorry for the double post, my bad, learning to use the newsgroup software=

..
>=20
> I used the advcheckbox and that worked fine. Don't know what the problem =

was
> with checkbox.
>=20
> Could you give me an example of using the setChecked method please?


$el =3D& $form->addElement('checkbox', 'name');
$el->setChecked(true);

>=20
> Thanks Justin!
>=20
> -----Original Message-----
> From: Justin Patrin [mailto:papercrane@gmail.com]
> Sent: Thursday, May 19, 2005 11:05 PM
> To: Nola
> Cc: pear-general@lists.php.net
> Subject: Re: [PEAR] QuickForm: setting checkbox when editing
>=20
> On 5/18/05, Nola <nola@devasap.com> wrote:
he[color=darkred]
>=20
> setDefaults should work fine. If it doesn't, try using setChecked on the
> checkbox.
>=20


--=20
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com