You don't need to insert "<br>".
As long as there are text-delimited line breaks in the text submitted via the form, you can get them to show up as "<br>" by using the nl2br() function
So if you want to print a paragraph of text ($text)
in html with line breaks, use:
echo nl2br($text)
instead of
echo $text
-mike
Originally posted by nightmaredns
Mmkay, quick question.
I've got a textarea box where users fill in information. How do I make it when users press "enter" to drop down a line, the code say "hey they want a line break" and inserts a <br> tag for me?
Thanks in advance.