PHP中点击网页跳转后返回上一个页面的三种方法

 蓝色智慧 发表于 2021年06月18日 网站建设  44
蓝色智慧
LV 7 [大学]
最后在线:29天前
加入时间:2年前
主帖:230  跟帖:5

1: header("Location:上一个页面"); //以参数的形式指定回到某页面

2: echo"<script>history.go(-1);</script>";  // 利用js返回上一个页面

3: header("Location:".getenv("HTTP_REFERER")); //   返回其调用页面
论坛主帖
231
论坛跟帖
2
在线访客
0
今日主帖
0
今日跟帖
0
今日注册
0
181
http://76w.net/sq/index.php/gentie.html
http://76w.net/sq/index.php/postzan.html
http://76w.net/sq/index.php/postcai.html
http://76w.net/sq/index.php/postshoucang.html
http://76w.net/sq/index.php/gentiezan.html
http://76w.net/sq/index.php/gentiecai.html
http://76w.net/sq/index.php/huifu.html
http://76w.net/sq/index.php/xiugai.html
http://76w.net/sq/index.php/shanchugentie.html
1
XzA=
1
© 2023 天慧网·互动社区 版权所有
Powered by JianYuLunTan
蒙ICP备2021000971号-1
http://76w.net/sq/index.php/feedback.html
http://76w.net/sq/index.php/qiandao.html
http://76w.net/sq/index.php/denglu.html
0
http://76w.net/sq/index.php/adenglu.html
剑鱼论坛