Re: Line Breaks in a Textarea
- From: Chris Hope <blackhole@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 09:51:25 +1200
joelbyrd@xxxxxxxxx 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.
If you don't use nl2br(), and the text has line breaks in it, then those
line breaks will actually show up as line breaks in the textarea. You
don't need the <br /> tags.
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
.
- References:
- Line Breaks in a Textarea
- From: joelbyrd
- Line Breaks in a Textarea
- Prev by Date: Re: MySQL Speed
- Next by Date: Re: Line Breaks in a Textarea
- Previous by thread: Line Breaks in a Textarea
- Next by thread: Re: Line Breaks in a Textarea
- Index(es):
Relevant Pages
|