# Keeping line breaks in textareas

**URL:** https://forum.kirupa.com/t/keeping-line-breaks-in-textareas/63705
**Category:** Uncategorized
**Created:** [September 9, 2004, 9:50am UTC](https://forum.kirupa.com/t/keeping-line-breaks-in-textareas/63705 "2004-09-09T09:50:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ya3](https://avatars.discourse-cdn.com/v4/letter/y/e95f7d/32.png) [@ya3](https://forum.kirupa.com/u/ya3)
#### Post date: [September 9, 2004, 9:50am UTC](https://forum.kirupa.com/t/keeping-line-breaks-in-textareas/63705/1 "2004-09-09T09:50:58Z")

</div>

Hi

I’ve got a simple feedback form on my site in Flash. There’s a multiline textarea that the user types into, then it sends the text to a PHP script which emails it to me.

Problem is, I’ve never been able to retain the line-breaks the user puts in originally. I’m pretty sure it’s Flash not indicating where line-breaks are when it sends the text off to the PHP.

How can I get Flash to output the text with \<br\> or /r characters in it? I’ve tried using the ‘htmlText’ of the textarea, but all that does is put in a whole lot of junk (eg. \<P\>\<DIV\> tags), and no \<br\> tags…

Is there a special way to do this?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 9, 2004, 2:35pm UTC](https://forum.kirupa.com/t/keeping-line-breaks-in-textareas/63705/2 "2004-09-09T14:35:07Z")

</div>

Hi

I guess you are not setting ur textFields HTML property to TRUE.  
Select a TextFiled where you want to get Line Breaks. and set its HTML  
(\<\>) this symbol, just select it.  
And also set Line Property to MultiLine and not single line.

Cheers

aShIsH
