I have a input from a form so that users can post commments on news articles. The code for the input part of the form looks like.
<textarea name=comment cols=20 rows=7 class=dropdowns title=comments></textarea>
Nothing special here! The problem is this variable $comments is written to a text file but when i echo it on the site any space, as in new paragraphs will not be shown. A post that shoould look like this:
Some text here
New paragraph
Will come out like this:
Some text here. New paragraph.
I need a way to be able to replace the gaps between paragraphs and turn them into <br> tags. Thanks in advanced for any help.