Help - Search - Members - Calendar
Full Version: Comments/forums
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
iancoates
Hi all,

I hope this in the right section...

When I have a text area in a form formatting, specifically return line breaks, are removed and the text is continuous. Using this though you can add code such as <b> etc. However when I have an email() body text line break text areas are still there, just like this forum.

Therefore the question is how can I make my text area behave like this, with line breaks.

Thanks

Ian
Pixeltor
Hi my (real name) is Ian too!

use

nl2br("TEXT WITH SEPARATE LINES");

nl2br
iancoates
Thanks Ian

I'll give it a go

Cheers
nfljerseys

When I have a text area in a form formatting, specifically return line breaks, are removed and the text is continuous. Using this though you can add code such as However when I have an email() body text line break text areas are still there, just like this forum.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.