Re: [QuickForm]: advaned check box question

From: Date: Mon, 12 Jun 2006 19:13:02 +0000
Subject: Re: [QuickForm]: advaned check box question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24328@lists.php.net to get a copy of this message
Mark Steudel wrote: > I was looking at the example of the advanced checkbox included with the > package: > > $form->addElement('advcheckbox', > 'iadvChk', > array('Advanced checkbox:', 'Unlike standard > checkbox, this element <b>has</b> a value<br />when it is not > checked.'), > 'Check the box', > null, > array('off', 'on')); > > In the third element, there is an array, the first part is the label, what > does the second element do? I thought perhaps it's the label to the right of > the element but that is the fourth main element ...´ Just read the whole code, especially lines 17 to 31. The example shows how to use two labels, one before and one after the element. Regards, Mark

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