Re: Parsing syntax to add a HTML line break

From: Date: Tue, 18 Dec 2001 10:53:45 +0000
Subject: Re: Parsing syntax to add a HTML line break
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78052@lists.php.net to get a copy of this message
steph@philedom2k.com wrote:
I have a form to be used for data submission and to be added to MySQL. How do I parse the syntax so that it automatically inserts a HTML line break whenever a carriage return is present?? Thanks. Another PHP newbie, Steph
One possibility is to use 'nl2br()': http://www.php.net/manual/en/function.nl2br.php -- Pavel a.k.a. Papi

« previous php.general (#78052) next »