Raj*_*ran 4 php
为什么使用header()重定向后执行goto
$flag=1; if($flag==1) header("Location:page1.php"); header("Location:page2.php");
当使用此代码页重定向到page2.php时,为什么会发生这种情况
Amb*_*ber 8
您需要exit;在标题调用之后添加一个; 客户端停止加载页面后,PHP不会自动停止执行代码.
exit;
归档时间:
14 年,8 月 前
查看次数:
2270 次
最近记录: