use the nl2br() function to convert the newlines to br
bastien
From: Alex Major [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Formatting a form box
Date: Thu, 12 Jan 2006 16:33:01 +
Hi there,
On one of my forms, there is a section where users can put images etc..and
then
One approach is to ask the user to input a text delimiter, like a @, for
example, in every point where there should be a new line or paragraph.
Then, you should parse the text, and at every point you find a @, tu place
a BR or P or any other HTML tag that best suits your need!!
This is just one
What? Nobody said This has nothing to do with PHP and databases? Sheesh...
someone must be sleeping. :) Ok, so it sorta does relate..
But yeah... no2br() will do it for you. Textarea input types DO send a newline
and/or carriage return (didn't test and might be system specific), so if you
Miguel Guirao wrote:
One approach is to ask the user to input a text delimiter, like a @, for
example, in every point where there should be a new line or paragraph.
Then, you should parse the text, and at every point you find a @, tu place
a BR or P or any other HTML tag that best suits your
Thanks for the suggestions, the nl2br has been a common suggestion and think
that I have found more of what the problem is. (And it is kinda php specific
cause its php pages). Basically its not displaying it correctly on the page,
the text in the database is now being stored correctly (with lines