HTML PHP Display username after success login

后端 未结 8 1594
执念已碎
执念已碎 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:48

    I think your PHP should look something like that:

    ' . username. 'Logout
  • '; } else { echo 'Login/Register'; } ?>

    Use either brackets in both if and else or use none. By the way you don't need an elseif if you're only checking a boolean. (there are only 2 possibilities)

提交回复
热议问题