Re: HTML_QuickForm instant display of an element

From: Date: Sun, 16 May 2004 00:13:25 +0000
Subject: Re: HTML_QuickForm instant display of an element
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12473@lists.php.net to get a copy of this message
On Thu, 2004-05-13 at 10:12 +0400, Alexey Borzov wrote: > Hi! > > Antti wrote: > > What is the correct way to just echo an element independently instead of > > 'collecting' the elements with addElement() and then echoing them all at > > once with display()? I need to add a checkbox for every table row so I > > can't echo the whole form at once 'cause the checkboxes are the same > > form. > > > $element =& $form->createElement(...); > $element->display(); > > you can also directly instantiate element class, without using createElement() > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Say I display these elements using createElement(), how do I get the <form></form> tags surround them? One other question. What's wrong with this: $formPl= new HTML_QuickForm('selectPlaylist',NULL,NULL,"class='table'"); $query = "select id,login,name,public from playlists order by login"; $test =& $formPl->addElement('select','list','Playlist:'); $test->loadQuery($mysqlConnection,$query,'id','name'); $formPl->display(); I'm not getting any options to the select box. -- () ascii ribbon campaign - against html e-mail /\ - against microsoft attachments -antti

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