Re: textarea/display question...
| From: | Justin Patrin | Date: | Tue, 20 Jul 2004 18:50:58 +0000 |
| Subject: | Re: textarea/display question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191215@lists.php.net to get a copy of this message | ||
On Tue, 20 Jul 2004 10:59:06 -0700, bruce <bedouglas@earthlink.net> wrote:
> hi..
>
> i'm presenting a textarea to the user...
>
> i'd like to be able to display the information within the textarea in a
> <table> format. this would allow me to highlight the material that the user
> should modify. however, i can't figure out how to accomplish this...
>
> $foo = '<table><tr><td
> class='red'>blah</td></tr></table>';
> <textarea value='$foo'></textarea>
>
> something like the above, but without displaying all the attrib stuff...
>
> any ideas/pointers would be appreciated..
>
First of all, textareas don't have a "value" attribute, you put the
text between the <textarea> tags.
Second, you simply can't do that. Textareas are normal text only.
However, there are JavaScript plugins you can use to do this:
http://dynarch.com/mishoo/htmlarea.epl
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--