I've got this problem... I'm making a forum with php and a postgresql database. I have a textarea in which the message should be typed. This message is put in a database field, but when i retrieve it from the database (print"$variable")and multiple lines are typed with carriage returns, the returns only come in the html-code. Because of that the output on the page is one long line. Can someone help me with this problem??
Marcel
the problem is that html doesnt recognise line feed as a new line what you need to do is something like.
<?
$message="hello\nto\nthe\nworld";
$message=str_replace("\n", "<BR>\n", $message);
echo $message;
?>
Mark.