当前位置:Gxlcms >
PHP教程 >
关于PHP网页用户登陆后显示注销.而登陆前则只显示注册登陆连接的有关问题
关于PHP网页用户登陆后显示注销.而登陆前则只显示注册登陆连接的有关问题
时间:2021-07-01 10:21:17
帮助过:2人阅读
关于PHP网页用户登陆后显示注销.而登陆前则只显示注册登陆连接的问题
如题.我是用PHP的.
session_start();
echo $_SESSION['username'];
?>
- Login
- Apply for user1
- Apply for user2
------------以上是在index.php写的------------
我是想当登陆后.login , Apply for user1 , Apply for user2都不显示.只显示用户名和注销.
然后注销后就会显示回login , Apply for user1…….
求大神们教教我.
------解决方案--------------------请给出index.php完整代码.
------解决方案--------------------PHP code
- 用户名
- 注销
- Login
- Apply for user1
- Apply for user2
------解决方案--------------------
------解决方案--------------------
session_start();
?>
- 用户名
- 注销
- Login
- Apply for user1
- Apply for user2