我最近制作了一个登录页面的项目。一切正常,除了首页中的href标记,然后注销(放置),这是代码图像href (please consider from line 20 to 37)
这是注销代码的代码
`$_SESSION["uid"]="";
header('Location: index-alt-login.php');
}else {
header('Location: index-alt-login.php');
}`
[请帮助我解决此问题,给您带来的不便,敬请谅解
[据我所知,您在那里缺少if(){
部分。添加它,它应该可以正常工作!或者如果是错误的,请编辑问题!
赞:
$_SESSION["uid"]="";
if($something){
header('Location: index-alt-login.php');
}else {
header('Location: index-alt-login.php');
}