php header 无法跳转

2025-04-27 20:30:51
推荐回答(1个)
回答1:

页面跳转到本身,这应该是个死循环,应该加上判断才会停止
header前面一句加上
if($_SESSION['t']>10){
echo '已经到十次了';
exit();
}