form method =" post"停止了我的Meta刷新发生

时间:2015-01-25 21:25:37

标签: php html css css3 email

我在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:&nbsp;&nbsp;</b>
    <input name="pincode" type="password" maxlength="4" id="ctl00_cphContent_txtPIN" autocomplete="off">
    <input type="submit" name="pincodesend" value="Next &gt;&gt;" id="ctl00_cphContent_btnSubmit" class="SmallButton">
</form>

现在,我还有<META HTTP-EQUIV="refresh" CONTENT="5">

问题是,当我不使用表单时,刷新就好了,当我使用它时,它完全停止了我的刷新。

有没有办法(没有javascript)解决这个问题?

1 个答案:

答案 0 :(得分:0)

我认为重定向(301)而不是刷新将解决问题。 如果您在服务器上运行PHP:

<?php
Header( "HTTP/1.1 301 Moved Permanently" ); 
Header( "Location: http://YOUR-WEB.SITE/path/path.php" ); 
?>