Hi there: I have a comment script and when people write something in goes to MySql database and after that when I display that text I have "<br />" on the plase where the user have pressed "enter". I'm using "addslashes(htmlspecialchars($comment))" to ad the comment to database. example http://www.eboras.se/annons.php?v=118 Any sugestions? Thanks
use str_replace("<br />", "", $your_comment_var); Code (markup): you may also need to look at this http://php.net/str_replace arief
Without seeing the script I can only ask, Are you using striptags? This will strip all <tags> but you can allow some with additional parameters.
Thanks for all suggestions. Yes "str_replace" is the best solution. I alredy use "str_replace" for "bad words", but I have totally forgot. Stupid me ha? Thanks one more time.