ppp.php<?php
if(isset($_POST["id"])){
。。

。。
echo "<script>location='ppp.php';</script>";
}
?>
<form action="ppp.php" method="post" name="f">
ID:<input  name="id"  type="text" /><br />
<input type="submit"  name="submit" value="提交" /><br />
</form>提交POST 或者get以后 刷新IE  $_POST["id"] 依然有值    用unset也不行 只能用跳转页面吗?

解决方案 »

  1.   

    刷新是重新提交的意思  所以值还在!unset 之后 再echo下看看  是不是还有值 
      

  2.   

    刷新是重新提交的过程,相当于重新点击了一次submit,而提交的值是你上一次输入的值。所以你用unset不行。
    不知道你为什么会有这样的需求?
      

  3.   

    返回网址加上时间cuo。time=".time()."