[QuickForm] attributo for input elements

From: Date: Thu, 30 Oct 2003 21:13:34 +0000
Subject: [QuickForm] attributo for input elements
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8695@lists.php.net to get a copy of this message
Hi, I want to set the same attributo to all form's elements, example: <input type="text" name="foo1" CLASS="myclass"> <input type="password" name="foo2" CLASS="myclass"> <select name="foo3" CLASS="myclass"> ... and so on... I've tried with adjust "$form->setElementTemplate()", but it doesn't seems affect to INPUT html tag. the only way that I've found to do it, is put on EVERY addElement my attribute like this: $form->addElement('text','title','Title:','class="myclass"'); there's a way to avoid put on every addElement myclass atributte ? Thank you! Andres. (another happy QF user!)

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