i have a guestbook, users post their comments in a textarea, when the but a linebreak in it, it gets messed up, how can i make it so it will convert the linebreak to <br> ???
This is not a PHP questions folder. But since you're here, [man]nl2br/man...
<moved from Code Critique to General Help>
Please ask questions in the appropriate forums.
thanks, i used str replace and replaced \n with <br />