Click to See Complete Forum and Search --> : Textarea Overflow


bdmovies
10-20-2007, 02:56 PM
I'm using serveral Textarea's on my site, the contents get inserted into a DB. A user can search the contents of the DB, but when I'm showing the results that search, it's displaying the results of teh textarea in one ling line. How can I format the input of a textare so 1)It all appears in the textarea w/o scrollbars and 2) When showing again in the search, it doesn't show in one long line....Thanks

scragar
10-20-2007, 05:42 PM
what serverside language are you using? you'll have to look up the replace function and use it to replace a new line character("\n" in PHP, javascript and similar languages) with "<br />" or "</p><p>" depending on what your after.