Try nl2br()
http://www.php.net/manual/en/function.nl2br.php
On Tue, 3 Jul 2001, Bessette, Casey wrote:
-I am creating a content management page that uses a textarea box to enter a
-chunk of text which then is sent into the database into a text-type field.
-
-I am finding that when the data
The information returned from a text box includes line feeds in the form of
\n which is not recognized by browsers as a line feed. To make it display
properly, you need to convert all the \ns to brs.. Here's a snippet
of code that I use:
// Assume that the text field is named 'message' and