# Problem with new line in loading data to textfile

**URL:** https://forum.kirupa.com/t/problem-with-new-line-in-loading-data-to-textfile/20983
**Category:** Uncategorized
**Created:** [May 15, 2003, 1:41pm UTC](https://forum.kirupa.com/t/problem-with-new-line-in-loading-data-to-textfile/20983 "2003-05-15T13:41:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mooler](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mooler](https://forum.kirupa.com/u/mooler)
#### Post date: [May 15, 2003, 1:41pm UTC](https://forum.kirupa.com/t/problem-with-new-line-in-loading-data-to-textfile/20983/1 "2003-05-15T13:41:28Z")

</div>

Hi I´m using a guestbook from flash-db and my problem is that it doesn´t suport linechanges when typing a message.

The original code was

```php
$Submit = $_POST["Submit"];
$Rubrik = $_POST["Rubrik"];
$Name = $_POST["Name"];
$Comments = $_POST["Comments"];

```

And I replaced it with this after consulting some foruma etc…

```php
$Submit = $_POST["Submit"];
$Rubrik = $_POST["Rubrik"];
$Name = $_POST["Name"];
$Comments = nl2br($_POST["Comments"]);

```

This changes the use of the “enter key” to “br /” now what I wanted was it to change it into \<br\> so when I load it into my flash textfield it changes lines everytime enter is used.

Any ideas?

Attaching phpfile
