我发送带有表单和按钮的 HTML 电子邮件,如下所示:
<form action="http://myurl/index.php" method="post">
<input type="hidden" name="testing" value="123456">
<button class="btn" type="submit">SEND</button>
</form>
然后在我的 index.php 页面中,我testing
以这种方式读取变量:
echo $_POST['testing'];
但我无法读取变量并给我这个:
Notice: Undefined index: testing
有一种方法可以将 html 邮件中的变量发送到 php 页面?