Re: Re: Problem with pseodo HTML object in QuickForm
| From: | Alexey Borzov | Date: | Fri, 04 Jun 2004 09:59:50 +0000 |
| Subject: | Re: Re: Problem with pseodo HTML object in QuickForm | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12890@lists.php.net to get a copy of this message | ||
PHP-Junkie wrote:
Hallo, as Justin Patrin told me, i tried to use the static element in my Group, to display a € sign behind my Textbox. Code: $test[] = &HTML_QuickForm::createElement('text', 'test', 'TEST', $class); $test[] = &HTML_QuickForm::createElement('static', 'test2', '€');Should be: $test[] = &HTML_QuickForm::createElement('static', 'test2', null, '€');
$form->addGroup($test, null, null, 'Price'); When i use teh Static element standalone it works fine, but in another line. When i use it at the group like you see in the Code, it is not displayed at all. I even don't find it inside the HTML-code. What can i do, to display some HTML text or some HTML code behind a Textbox ?You can also use multiple labels for an element. Consult the examples that come with the package.