Re: Quickform->setAttributes()
| From: | Alexey Borzov | Date: | Tue, 09 Aug 2005 09:52:12 +0000 |
| Subject: | Re: Quickform->setAttributes() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20333@lists.php.net to get a copy of this message | ||
Hi,
Noel wrote:
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?Seems not. You should use updateAttributes().