如题.我是用PHP的.
- Login
- Apply for user1
- Apply for user2
session_start();
echo $_SESSION['username'];
?>
------------以上是在index.php写的------------
我是想当登陆后.login , Apply for user1 , Apply for user2都不显示.只显示用户名和注销.
然后注销后就会显示回login , Apply for user1…….
求大神们教教我.
------解决方案--------------------
请给出index.php完整代码.
------解决方案--------------------
- PHP code
- 用户名
- 注销
- Login
- Apply for user1
- Apply for user2
- 用户名
- 注销
- Login
- Apply for user1
- Apply for user2
------解决方案--------------------
------解决方案--------------------
session_start();
?>