Re: Keeping newlines when sending form

From: Date: Tue, 12 Sep 2000 20:00:39 +0000
Subject: Re: Keeping newlines when sending form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16433@lists.php.net to get a copy of this message
nl2br() 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Bojan Gajic

« previous php.general (#16433) next »