QuickForm -> setDefaults on image element
| From: | Mark Steudel | Date: | Tue, 27 Apr 2010 23:23:46 +0000 |
| Subject: | QuickForm -> setDefaults on image element | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30474@lists.php.net to get a copy of this message | ||
I have the following form:
$form = new HTML_QuickForm( 'test' );
// outputs <input name="imageField" type="image" src="test.gif"
/>
$form->addElement( 'image', 'imageField', 'test.gif' );
// outputs<input name="imageField" type="image" src="test.gif"
value="test2.gif" />
$form->setDefaults( array( 'imageField' => 'test2.gif' ) );
$form->display();
I would've expected that $form->setDefaults would've changed the src,
but instead it adds the attribute value. Is there anyway around this?
Is this a bug?
MS
--
-----------------------------------------
Mark Steudel
P: 206.375.7244
msteudel@gmail.com
. : Work : .
http://www.mindfulinteractive.com
. : Play : .
http://www.steudel.org/blog