Possible Duplicate:
Newline Conversion in Submitted Text in PHP
I'm using PHP to store text submitted from a textarea into a database to later be echoed out. If a user presses enter in the textbox to start a new line, I want it to start a line break.
How can I go about doing that?
Let's say this is the textbox:
This is line one.
This is line two.
When a user submits this to the database it is just stored as one line and echoed out is the same result. "This is line one. This is line two."
So how do I make the stored text reflect the format of the original input?
",$string); GO to the 1st link ` – Elbek Oct 02 '12 at 00:47