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

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

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

echo"<script>alert('提交成功!');history.go(-1);</script>";  

posted @ 2020-07-06 09:53  Deer_Lin  阅读(1031)  评论(0)    收藏  举报