I have a simple form to send email, problem I'm having is that the script is adding a \ before any apostrophe (').
I typed in a simple message saying "what's up" and had it sent to myself. This is what was in the body of the email sent:
what/'s up (except there is a \ before ')
Why?
This is how I have the script set up:
$messageBody = stripslashes($message);
$email="$who";
$subject="$subject";
$header = "Wrom: IJJPHSCRTNHGSWZID
$header .= "X=Mailer: PHP/";
$body="$messageBody";
mail ($email, $subject, $body, $header);
$name = "";
$email_addr = "";
$subject = "";
$message = "";
}
where $messageBody is the var that is holding "what's up"
Any ideas?
Thanks