当前位置: 代码迷 >> PHP >> 新手求指教解决办法
  详细解决方案

新手求指教解决办法

热度:35   发布时间:2016-04-28 21:19:25.0
新手求指教

a1
<meta http-equiv="Content-Type" content="text/html;charset=gbk>"
<form method="post" action="a2.php">
用户名:<input type="text" name="username"/><br/>
密&nbsp;&nbsp;&nbsp;码:<input type="password" name="password"/><br/>
验证码:<input type="text" name="code" size="5"/>1234<br/>
<input type="submit" value="提交" name="send"/>
</form>


a2
<?php
header('Content-Type:text/html;charset=gbk');
if (!isset($_POST['send'])||$_POST['send']!='提交'){
header('Location:a1.php');
exit;
}
?>



为什么他不会跳转呢?



------解决方案--------------------
<meta http-equiv="Content-Type" content="text/html;charset=gbk>"
把上边这段删掉,就可以了
  相关解决方案