On Tue, 20 Jul 2004 10:59:06 -0700, bruce <[EMAIL PROTECTED]> 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-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php