funny behaviour of the static element
| From: | Bjoern Mittelsdorf | Date: | Wed, 23 Aug 2006 13:55:23 +0000 |
| Subject: | funny behaviour of the static element | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24968@lists.php.net to get a copy of this message | ||
Hi everybody,
while trying to corrupt quickform, I noticed some funny behaviour of
static elements:
I wanted a static element in the form table but wanted its text to span
the whole width, so i tried:
$newform->addElement( 'static', "Hilfe", "Blabla", array(
'colspan' =>
'2') ) ;
Output:
-------+-----------+
Blabla | array |
-------+-----------+
Gender | textfield |
-------+-----------+
I do not understand, but I got a solution to my problem, like this :)
$newform->addElement( 'static', "Hilfe", "", "Blabla" ) ;
-------+-----------+
| Blabla |
-------+-----------+
Gender | textfield |
-------+-----------+
Is this a bug, is this intented, have I found the entrance to lost
worlds, and does this mean that I can add no attributes to a static
element ?
Thanks for your attention (sorry for my bad English),
Bjoern.