PEAR quickform making a select checked

From: Date: Tue, 02 Jan 2007 18:42:03 +0000
Subject: PEAR quickform making a select checked
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26242@lists.php.net to get a copy of this message
I'm trying to set my checkboxes to checked using quickform but I must be doing something wrong because it's not showing. Can you have a look to see if I'm doing it OK please: while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) { $skills[] = &HTML_QuickForm::createElement('advcheckbox', $c, null,'<b>'.$row['skillname'].'</b> : '.$row['description'], 'checked' , array( -1 ,$row['skillid'])); $c++; } I thought if I added 'checked' it would check each advcheckbox automatically but nothings happening for some reason... I'm scratching my head but it's probably something simple... what is it? www.bitesoftware.com - software for a better lifestyle _________________________________________________________________ Windows Live™ Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb

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