Quickform->setAttributes()
| From: | Noel | Date: | Tue, 09 Aug 2005 09:49:08 +0000 |
| Subject: | Quickform->setAttributes() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20332@lists.php.net to get a copy of this message | ||
Hi,
I'm wondering about the behaviour of the setAttributes() method of a
quickform element. In particular:
<code>
$select[0] =& $form->createElement('select', 'status', 'Current
Status:');
$select[0]->setAttributes('size="1"');
</code>
Here setting the attribute seems to overwrite the name ('status') that was
set in the first line of code.
Seems to be a bug?
Regards,
Noel