Hi
When i send a mail using the code below any apostrophes automatically get slashes
$to = 'person@domain.com';
$subject = 'A message from the site';
$message = "A message from ".$_POST['r_name']."\r\n";
$message .= $_POST['message'];
$message = wordwrap($message, 70);
$headers = 'From: ' . $_POST['r_mail'] . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
I thought maybe trying to use stripslashes() but where would i put it ? - the mail function is the last step in the process
can anyone help ?
thanks