if(fail)
echo "
<script>
  history.go(-1);
</script>
";

解决方案 »

  1.   

    先看看这个我刚写的,不过代码太长了
    www.showtop.net/openphp/index.php?page=reg
      

  2.   

    退回时候叶面刷新了
    可以用session, 你的那些输入矿的value=session值
    或者用保留缓存时候
    <script>
      history.go(-1);
    </script>
      

  3.   

    session 不行的话,可以使用cook的
      

  4.   

    不用那么复杂。只需要在你的显示表单的php页首加上一句header("Cache-control: private");即可。然后你再试试history.back();
      

  5.   

    UP
    我个人比较喜欢用SESSION,呵呵!