quote:Originally posted by Leo quote:Originally posted by -dt- do something like code:$message = $_POST['textarea']; $message = str_replace("\n",' ',$message); and it should turn all newlines into 'sWhy not use PHP's nl2br() function?
quote:Originally posted by -dt- do something like code:$message = $_POST['textarea']; $message = str_replace("\n",' ',$message); and it should turn all newlines into 's
code:$message = $_POST['textarea']; $message = str_replace("\n",' ',$message);