是何我的表单每次刷新或者通過网站都市自播先送一次
$name = isset($_POST['uname'])?$_POST['uname']:"";
$phone = isset($_POST['phone'])?$_POST['phone']:"";
$company = isset($_POST['company'])?$_POST['company']:"";
$message = isset($_POST['message'])?$_POST['message']:"";
$msg = "名前:".$name."
"."電話:".$phone."
"."会社:".$company."
"."メッセージ:".$message;
$to = "long.cheng@freshds.com";
$subject = "ソリアナの連絡先";
$from = $name;
$headers = "From: {$name}";
if(mail($to,$subject,$msg,$headers)){
echo "<script>alert('ご支援ありがとうございます')</script>";
}その他{
echo "<script>alert('Failed')</script>";
false を返します;
}
?>