我有此错误提示:未定义的索引:uid_fb
请帮助
<?php
include "common.php";
if($_SESSION['uid_fb']!='' && $_SESSION['login_fb']=='true')
{
// header("Location:home.php");
}
答案 0 :(得分:0)
<?php
include "common.php";
if (!empty($_SESSION['uid_fb']) &&
isset($_SESSION['login_fb']) &&
$_SESSION['login_fb']=='true')
{
// ...
}
答案 1 :(得分:0)
添加isset
:
<?php
include "common.php";
if(isset($_SESSION['uid_fb']) && $_SESSION['uid_fb']!='' && $_SESSION['login_fb']=='true')
{
// header("Location:home.php");
}