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

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

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

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

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2021-09-15
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2021-07-18
  • 2021-10-14
  • 2021-12-15
相关资源
相似解决方案