# sendAndLoad doesn't preserve new lines

**URL:** https://forum.kirupa.com/t/sendandload-doesnt-preserve-new-lines/230645
**Category:** flash
**Created:** [June 27, 2007, 9:14pm UTC](https://forum.kirupa.com/t/sendandload-doesnt-preserve-new-lines/230645 "2007-06-27T21:14:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jsears](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jsears](https://forum.kirupa.com/u/jsears)
#### Post date: [June 27, 2007, 9:14pm UTC](https://forum.kirupa.com/t/sendandload-doesnt-preserve-new-lines/230645/1 "2007-06-27T21:14:15Z")

</div>

The user fills out a flash “send a postcard” with their name, email, destination and message. The flash file sends everything to a PHP page that writes everything to a database and then sends a postcard to the recipient.

My problem is that hard returns in the message are not being passed to the PHP page. Here is some code:

postcard\_lv = new LoadVars();  
result\_lv = new LoadVars();

postcard\_lv.message = obj.mcPostCard.messageTxt.text;

postcard\_lv.sendAndLoad(“[http://www.the-url/index.php",result\_lv,"POST](http://www.the-url/index.php%22,result_lv,%22POST)”)

I’ve been struggling with this for days. I even tried detecting the character code for a hard return in the message and replacing it with a ‘\<br\>’ but the script locked my browser up. Any help would be greatly appreciated.
