try to use addslashes instead of mysql_real_string since it replaces every /n with /n/r and /n/r is interpreted properly as a break in my browser(try for compatibility on both IE and Mozilla).ok thanx but what would i use?
I couldn't get it too work...
It doesn't want to replace "\r\n" with "\n"... (i tried with) ereg_replace. Somehow it will always be shown wrong in the email.
If you still use mysql_real_string() to escape something,,,then you can even use str_replace to change /r/n to /n
Code: Select all
str_replace("/n/r", "/n", $your_message);Actually I have seen only two places where we have to escape a stringyou actually shouldn't have to escape anything for the message component, you know..
1. database insertion
2. url variables.
In other cases, I dont think ',",/ are going to give some problems as feyd said.