Re: QucikForm -- Attributes not being set in addElement

From: Date: Mon, 23 Aug 2004 07:04:46 +0000
Subject: Re: QucikForm -- Attributes not being set in addElement
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14225@lists.php.net to get a copy of this message
safer to pass attributes in array form: $myFrom->addElement('text', 'text1', 'name', array( "class" => "fnt" ) ); _________________________ "Sawan Vithlani" <svithlani@swiftel.com.au> wrote in message news:1093235093.4673.61.camel@localhost.localdomain... > Hello All. > > I want to change the fonts of the elements of my form and am trying to > do this by passing on a CSS class as the last (attribute) parameter to > the form->addElement() function. Here is how the code goes > > . > . > . > <style type="text/css"> > .fnt { font-family: fantasy; } > </style> > . > . > . > myFrom->addElement('text', 'text1', 'name', > "class=fnt"); > . > . > . > This does not work. Am I doing anything wrong? > > Thanks > > Sawan

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