I have a script that when ran adds a \ in front of all HTML quotes. I am a bit of a novice on PHP but have a slight understanding of it though. What we are doing is we copy the HTML source code and paste it into a text box. Upon hitting submit I have the HTML sent out to email address. When the email arrives the formatting is all wrong and there are \ added before every quote in the message?
Any Ideas?
look at stripslashes() function.
I am a real NEWBIE. I don't understand what you mean. Could you explain?
If its adding something like: The Dog\'s Fur..
Then, when you display it, use: $message = str_replace("\'","'",$whatever);
Does that help? Dean
Or you could just:
$message = stripslashes($message);
Ron
Thanks for the help, but with my ignorance I don't know WHERE to put these things into the code.
$message = stripslashes($message); mail(...,$message, ...); :-)
Put it right before you display $message (or whatever you do with it)