I have a textarea in a contact form, when it is submitted to the page that sends the mail, it passes through another page.
in the second page, when I echo $_POST['textarea'] I get all the text in one line.
Is there a javascript or PHP code that fix this?
Have a look at PHP’s
nl2br.Example #1 from the above link: