show the code bit relevant to the nl2br issue and conversion
bastien
From: Alex Major <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>,
Subject: Re: [PHP-DB] Formatting a form box
Date: Thu, 12 Jan 2006 19:42:33 +
Thanks for the suggestions, the nl2br has been a common suggestio
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 /
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 "" or "" or any other HTML tag that best suits you
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
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 "" or "" or any other HTML tag that best suits your need!!
This is just
use the nl2br() function to convert the newlines to
bastien
From: Alex Major <[EMAIL PROTECTED]>
To:
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 it is displayed on my