HTML PHP Display username after success login

后端 未结 8 1597
执念已碎
执念已碎 2020-12-06 03:15

I have a

inside my onlinestore.html file which is my menu that contain of Login/Register. What I want is after the success login, the
8条回答
  •  情书的邮戳
    2020-12-06 03:33

    If you want the username to be displayed instead like in the example you need to change your code for onlinestore.html to the following:

  • ' + $_SESSION["username"] + ' (Logout)
  • '; } elseif($_SESSION['logged']==false) echo 'Login/Register
  • '; ?>

提交回复
热议问题