有谁知道我的代码有什么问题?当用户在文本区域框中输入文本时,引号会在它们之前呈现反斜杠,单引号的行为方式相同。我尝试了几种代码组合,但没有任何效果。有人可以帮我吗?谢谢。
这是我的代码:-------->
/* Email Variables */
$emailSubject = 'You have received an inquiry from your website';
$webMaster = 'info@3elementsreview.com';
/* Data Variables */
$first = $_POST['First'];
$last = $_POST['Last'];
$email = $_POST['E-Mail'];
$message = $_POST['Message'];
$body = <<<EOD
<span style="color:#454545; font-weight:bold; font-size:1.6em;">$first</span><br>
<span style="color:#454545; font-weight:bold; font-size:1.6em;">$last</span><br>
<span style="color:#454545; font-weight:bold; font-size:1.6em;">$email</span><br>
<br>
<span style="color:#252525; font-size:1.4em;">$message</span><br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);