RE: [PHP] Preserving line breaks from form data.

From: Date: Sat, 29 Jul 2000 12:53:51 +0000
Subject: RE: [PHP] Preserving line breaks from form data.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8955@lists.php.net to get a copy of this message
nl2br($body); will replace your line breaks with <br> so it view in html properly M@ > -----Original Message----- > From: generic@x.duh [mailto:generic@x.duh]On Behalf Of Generic Player > Sent: 29 July 2000 13:14 > To: php-general@lists.php.net > Subject: [PHP] Preserving line breaks from form data. > > > What do I need to do to preserve linebreaks people make when putting > data in a form? I have a textarea in a form which stores the input as > $body, but when I print $body, all linebreaks have been turned into > spaces. > > Thanks > Generic Player > > > -- > 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 >

« previous php.general (#8955) next »