POST info into variable removes carrage returns..
I'm playing with an email script thingy. A user has a TEXTAREA and can key in a email to submit.
Example at: http://www.ibarn.net/email
If you key in a message with returns in it, and then submit, the returns are lost.
Index HTML
PHP Code:
<form name="textmsg" method="post" action="http://www.ibarn.net/email/send.php">
<textarea name="message" wrap=virtual cols=38 rows=10></textarea>
</form>
Send PHP
PHP Code:
$message = $_POST['message'];
echo("$message");
Somewhere in these lines the formatting is getting removed. I assume it's something stupid, me not using an argument, or the wrong command (echo instead of something else.. though I've tried PRINT already.)
This is probably really basic, and a real "DUH" cantidate.. but any help would be greatly appreciated.
I'm writing this for the experience, not because I need the program. If I needed it, I could simply go download any of a thousand other existing ones. I seek learning, not utility.. :)
Thank you.