以下实例通过 Session 来判断用户是否登录:
functions.php
Username:
Password:
';
}else{ // 登录显示欢迎页面
echo 'Welcome, '.$_SESSION['username'];
}
}
?>
index.php
My Page