stripslashes() failed???

I've used stripslahses in this situation, and it's worked perfectly.  Wonder
what else is going on here?  Go without quotes.

mail($usersemail, $subject, $message, $headers); 

-----Original Message-----
From: hamish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 7:28 AM
Subject: [PHP] mail tag

I have coded a typical mail process for sending a mail from a form. It works

fine except for anytime any one puts a ' or a " in the content of the mail, 
the tag places a \ infront of it. I have tried to stripslashes and the mail 
is being sent as html. Has any one got the answer? 

code below:
(description is my variable on a previous page where the user types in the 
content of the mail) 

$subject = 'Email from me'; 

$message = "
This email is regards a question / query that you put to me.
This email is for reference purposes only.
You asked:
".stripslashes ($description); 

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "from: Help Desk <[EMAIL PROTECTED]>\r\n"; 

mail("$usersemail", "$subject", "$message", $headers); 

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to