Missing functionality in HTML_QuickForm.

From: Date: Tue, 07 Jan 2003 01:22:15 +0000
Subject: Missing functionality in HTML_QuickForm.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3201@lists.php.net to get a copy of this message
Hello, Sometimes I want to add static text in the middle of the form I can do this in two ways. The first is: $defaults['test'] = 'text in the middle of the form'; $form->setDefaults($defaults); $el =& $form->createElement('text', 'giodo', null); $el->freeze(); $form->addElement($el); I think it's ugly, and the second way is: $form->addData('<tr><td></td><td valign="top">text in the middle of the form</td></tr>'); I don't like this one too, since I have to add that html around the text every time. Shouldn't there be in QuickForm function similar to addData but with template (like addHeader)? -- Wojciech Gdela <eltehaem@poczta.onet.pl>

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