Re: HTML_QuickForm Question
| From: | Mark Wiesemann | Date: | Thu, 03 Jan 2008 21:56:10 +0000 |
| Subject: | Re: HTML_QuickForm Question | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28399@lists.php.net to get a copy of this message | ||
Hi Paul,
Paul Gustafson wrote:
> Is there any way for me to create a HTML_QuickForm Textarea element and
> pre-populate it with text? I am able to do this with a simple text input by
> passing in a value => 'test' but this does not work for a text area...Please
> Help
You're looking for this method:
http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.setdefaults.php
This is the recommended way to populate all elements, including the
mentioned "simple text input" fields.
Regards,
Mark
--
http://www.markwiesemann.eu