View Single Post
Old 11-15-2012, 04:45 PM   PM User | #1
sanomani
New Coder

 
Join Date: Jun 2012
Posts: 26
Thanks: 9
Thanked 0 Times in 0 Posts
sanomani is an unknown quantity at this point
Exclamation Line Break issues in TEXTAREA

Hi,
I've been searching for a solution for this problem. Browsed so many forums and sites but nothing solved the exact issue I am having.
So I've decided to write my case here.

I am using a textarea in my form, a simple form that will send an email using php.

Following is the code
Code:
<textarea name="body" rows="9">
<? if (isset($posts['body'])){echo $posts['body'];}?>
</textarea>
But when the form is submitted textarea input loses the line breaks and instead shows ugly /r/n


Any guidance?
sanomani is offline   Reply With Quote