在下面的代码中,谁能阻止其运行?它可以在我建立的所有其他网站上使用。
我已更改此示例的电子邮件地址:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$tel = $_POST['tel'];
if($name != '' && $email != '' && $tel != ''){
$to = 'email@gmail.com';
$subject = 'Enquiry email';
$message = '
<html>
<head>
<title>Enquiry email</title>
</head>
<body>
<p>Enquiry email</p>
<p>Customers details:</p>
<p>Name: '.$name.'</p>
<p>Email: '.$email.'</p>
<p>Telephone: '.$tel.'</p>
</body>
</html>
';
$headers = "From: $email" . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail( $to, $subject, $message, $headers );
}
?>