I am working on a form with a text box. The text box is a certain size so the input looks like this:
Hello Person,
Lorem Ipsum is simply dummy text of
the printing and typesetting industry.
Typesetting.Thank You.
Name
Then, on another page, I query this message. I want it to display like the following. I added
$text = str_replace("\n", "\n<br />\n", $row['message']);
which helps with the spacing, but it still does not display like the following. Any ideas?
Hello Person,
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Typesetting.
Thank You.
Name
Thanks!
[NW]
and inserting your message into MySQL to see if all the places you suspect that have a new line get replaced. If they don't then it may be a different spacing like\r
, etc. – Prix