Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingPHP right
  Closed Topic Start new topic
left right
iancoates
post Oct 4 2010, 07:53 PM
Post #1


Newbie
*

Group: Members
Posts: 25
Joined: 13-April 09
Member No.: 91,165



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
Go to the top of the page 
 
  + Quote Post
Pixeltor
post Oct 5 2010, 12:45 AM
Post #2


Member
**

Group: Members
Posts: 99
Joined: 14-November 08
From: New Brunswick, Canada
Member No.: 68,991



Hi my (real name) is Ian too!

use

nl2br("TEXT WITH SEPARATE LINES");

nl2br
Go to the top of the page 
 
  + Quote Post
iancoates
post Oct 5 2010, 07:29 AM
Post #3


Newbie
*

Group: Members
Posts: 25
Joined: 13-April 09
Member No.: 91,165



Thanks Ian

I'll give it a go

Cheers
Go to the top of the page 
 
  + Quote Post
nfljerseys
post Oct 6 2010, 02:57 AM
Post #4


Newbie
*

Group: Members
Posts: 5
Joined: 6-October 10
Member No.: 160,092




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.

Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 19th May 2013 - 07:04 AM