# Keeping line breaks in textareas

**URL:** <https://forum.kirupa.com/t/keeping-line-breaks-in-textareas/121988>\
**Category:** Uncategorized\
**Created:** [September 9, 2004, 9:50am UTC](https://forum.kirupa.com/t/keeping-line-breaks-in-textareas/121988 "2004-09-09T09:50:58Z")\
**Posts on this page:** 1\
**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/121988/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?
