Re: Line Breaks in a Textarea
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Line Breaks in a Textarea

From: khoa.tran <dkhoa.tran@gmail.com>
Date: Sat Apr 29 2006 - 19:37:44 CEST

joelbyrd@gmail.com wrote:
> Didn't know exactly where to post this, but: How do I get line breaks
> in a textarea? I'm pulling text from a database, and this text
> definately has line breaks in it, because I
> replaced all the line breaks with <br /> tags ( using the php function
> nl2br() ), and <br /> tags showed up in the textarea.

The line-break in textarea is "\n", not <br /> tag. So, if you get data
from one textarea and display in another textarea, you don't need to
convert anything.
Received on Mon May 1 03:07:27 2006