Hi everyone,
I'm relatively new to PHP. I have a problem with sending form email with php script. The problem is that PHP script puts ( \ ) back slash signs in front of the ( ' ) apostrophe character in the email message. How do i remove or filter this from happening. Whenever I receive email with the message like ("That's a problem"), the email message is like ("That\'s a problem"). Pls help me to solve this. Thanks to all.
Use the function stripslashes() details at php.net
$message = htmlspecialchars("$message", ENT_QUOTES); mail("to_email","submit","$message","From: blah");
Regards ryza
Thanks Martin and ryza. It solved.. 🙂