RE: [PHP] Line breaks in PHP

From: Date: Thu, 29 Mar 2001 19:30:04 +0000
Subject: RE: [PHP] Line breaks in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46109@lists.php.net to get a copy of this message
> -----Original Message----- > From: Matt Davis [mailto:matt@roundyourway.co.uk] > Sent: Thursday, March 29, 2001 1:29 AM > To: Php Mailing List > Subject: [PHP] Line breaks in PHP > > > I have a form that edits the text on a web page by putting the > data into a > db and then outputting to the webpage when it is called. When I enter my > text into my form I use the return key to start new lines, but > when the text > appears on my webpage it has no line breaks so the text just wraps to the > width of the page. > > Is there any way of PHP picking up these line breaks so that the text will > be formatted on my web page as it was on my form. > > Thanks > > Matt. http://www.php.net/nl2br <<---- Check out that function. that is what you need. Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn.

« previous php.general (#46109) next »