这很可能是一个简单的修复,我有我的 php 表单
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$to = "email";
$subject = "Quiz Entries";
$message = $_POST['email'];
$message = $_POST['name'];
$from = "website";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
我希望电子邮件包含用户的电子邮件和姓名,当我第二次声明变量时它只是覆盖它所以只发送名称。