電子メールを送信するemailnot送信emailnot送信emailnot送信emailnot送信emailnot送信しない電子メール を送信しない電子メール
$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
経由で詳細を送信することはできません?????
アラートの1件が表示されていますか?どれ? –
あなたのコードはSQLインジェクションの危険性があります – RamRaider