Forum Moderators: coopster
I picked this up somewhere along the lines:
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') //if you submited the form then
{
$message = $_POST["message"]; //message is the text field in the form
$message=eregi_replace(chr(13),"<br>",$message); // replace chr(13) ( Line
Break Char ) with <br> ( Line break html code )
echo $message; // print the variable
}
?>
HTH, Jenny