我正在通过 SMTP 发送包含表单的邮件,当表单提交时,我想获取表单详细信息并显示到表单提交的操作 URL
这是表格
<form id="myForm" name="myForm" action="thanks.php" method="post">
<input type="text" name="name1 " id="name1" />
<input type="submit" name="button" id="button" value="Submit" />
</form>
操作 URL where(thanks.php) 我正在尝试获取表单值
<?php echo $_POST['name1']; ?>
但没有显示,我的代码有什么问题?