$sql = "insert into book (uid,interest,tid,lid)values('$id','$interest','$tid','$lid') ";
$result = $conn->query($sql);
if($result)
{
\t echo"<script type='text/javascript'>
\t alert('added');
\t </script>";
\t
$message = "Your have interest in ".$interest."";
$to=$email;
$subject="Booked for ".$title."";
$from = '[email protected]';
$body="Booked for ".$title."located in".$location.".You will be charged with".$cost.
\t \t ".Contact:".$contact."";
$headers = "From:".$from;
mail($to,$subject,$body,$headers);
}
else
\t {
\t echo"<script type='text/javascript'>
\t alert('error');
\t </script>";
}
\t
不发送电子邮件 不发送emailnot发送emailnot发送emailnot发送emailnot发送emailnot发送电子邮件发送详细信息?????
是显示警报之一吗?哪一个? – 2017-07-16 05:54:21
你的代码存在sql注入风险 – RamRaider