Ok.. i have a add news script and everythig works perfect. When you add news.. if the user presses then enter key it goes down on the text box right? well it doesn't show it when it displays it. would there be some way to add a <br> tag to the mysql database when a user press's the enter key?
It should be adding the newline's, but not break tags. You can use nl2br() when you output it.
Sorry.. after reading the examples I don't know what to do.. this is what a have so far..
$message = str_replace("\n", "<br>", $message); $message = str_replace("<br>", "\n", $message);
It didn't work..
$message = nl2br($message);
I think soo.....
Thanks merve.. worked perfect