HTML_QuickForm | trouble with checkboxes

From: Date: Mon, 08 Dec 2003 20:13:32 +0000
Subject: HTML_QuickForm | trouble with checkboxes
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9383@lists.php.net to get a copy of this message
greetings, I'm using HTML_QuickForm v3.2, and I'm attempting to set the 'checked' attribute on a form with some code like this: $checkboxes = array(); $c = &HTML_QuickForm::createElement("checkbox", "explicitlyrics", null, "explicit lyrics"); $c->setChecked(false); $checkboxes[] = $c; however, when the form is displayed, it is 'checked', despite my call to setChecked on the object. perhaps I am doing something silly.. but I couldn't find an example doing things this way in the 'docs' directory of the tarball. any help appreciated. regards, J

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