Re: quickform

From: Date: Sun, 15 May 2005 16:14:29 +0000
Subject: Re: quickform
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19226@lists.php.net to get a copy of this message
On 5/14/05, Poncho Pilate <poncho@zoom.co.uk> wrote: > Richard, > > The <label> tag does not need the "for" attribute to focus on a form > element > if it is wrapped around said element, but if you do need it, try this: > http://pear.php.net/bugs/bug.php?id=3834 > Of course, to wrap the element in a label you can't use the default table rendering. Also, if you wrap your element in labels make absolutely sure that only one element is wrapped in the label, otherwise FireFox won't work correctly and some other browsers will crash. > I'm using a variation on this with QuickForm + Smarty array renderer. > > Regards; > Poncho > > > ----- Original Message ----- > > From: "Richard U" <richard.udo@gmail.com> > > To: <pear-general@lists.php.net> > > Sent: Saturday, May 14, 2005 4:10 AM > > Subject: [PEAR] quickform > > > > > > hey guys... im suing quick form with HTML_QuickForm_Renderer_ITDynamic > > renderer > > and for the element im i wish to use label tag but the label tag has a for > > attribut and im not sure how to pass an id to the element template > > . > > . > > . > > <!-- BEGIN qf_element --> > > <label class="default_formlabel" for="<how can i pass this > > id?>"><!-- > > BEGIN > > required --><span class="default_required">*</span><!-- END > > required > > -->{qf_label}<!-- BEGIN error --><span > > class="default_error">{qf_error}</span><br /><!-- END error > > -->{qf_element}</label> > > <!-- END qf_element --> > > . > > . > > . > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Justin Patrin

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