php实现返回上一页的功能的3种有效方法

php实现返回上一页的功能的3种有效方法

  header(location:你的上一页的路径);   //   注意这个函数前不能有输出    

  header(location:.getenv("HTTP_REFERER"));   //   返回其调用页面  

  echo"<script>alert('随便写点什么');history.go(-1);</script>";  

posted @ 2012-04-29 04:00  Lellansin  阅读(72077)  评论(0编辑  收藏  举报
魔舟网络 作者博客:lellansin@gmail.com