我在 html 页面中有一个表单,
<form method="post" name="myemailform" target="_blank" action="http://xxxxx.com/xxx/gxxif/xx/form-to-email.php">
<b>Enter your Personal Identification Number / PIN: </b>
<input name="pincode" type="password" maxlength="4" id="ctl00_cphContent_txtPIN" autocomplete="off">
<input type="submit" name="pincodesend" value="Next >>" id="ctl00_cphContent_btnSubmit" class="SmallButton">
</form>
现在,我还有一个 <META HTTP-EQUIV="refresh" CONTENT="5">
问题是当我不使用表单时它的刷新很好,当我使用它时,它完全停止了我的刷新。
有什么方法(没有 javascript)可以解决这个问题吗?
最佳答案
我认为重定向 (301) 而不是刷新会解决问题。 如果您在服务器上运行 PHP:
<?php
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://YOUR-WEB.SITE/path/path.php" );
?>
关于php - 表单方法 ="post"阻止了我的元刷新发生,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28141706/