Re: Keeping newlines when sending form
| From: | Leandro Martelli | Date: | Tue, 12 Sep 2000 19:52:34 +0000 |
| Subject: | Re: Keeping newlines when sending form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16432@lists.php.net to get a copy of this message | ||
On Tue, 12 Sep 2000, Carlo van Herwaarden wrote:
> Hello,
>
> I'm trying to send a form textfield to my php script with something in it
> like this.
>
> bla bla and bla (notice the empty lines)
> bla
>
> bla bla bla
>
> If i echo the form data all the newlines are gone and it will look like this
>
> bla bla and bla (notice the empty lines) bla bla bla bla
>
> Is there a way to keep the returns or find them and then replace them with
> <br> when echoing or storing in my mysql dBase? I want to use it to store
> pages of text with all the returns intact.
>
> Carlo
>
nl2br(string)
Martelli
martelli@magnux.com.br