Home > Backend Development > PHP Tutorial > How to display different content on the home page in wex5 when logged in and not logged in

How to display different content on the home page in wex5 when logged in and not logged in

WBOY
Release: 2016-07-06 13:53:50
Original
1353 people have browsed it

There is a homepage that needs to display the login control when the user is not logged in. After logging in, it displays "user information". How should I write this?
My implementation idea is: put both logged in and unlogged controls, then bind bind-visibel, and then control their own display and hiding. But the problem is that when the page is refreshed, all the controls will be displayed, and then some of them will be hidden. what do I do?

Reply content:

There is a homepage that needs to display the login control when the user is not logged in. After logging in, it displays "user information". How should I write this?
My implementation idea is: put both logged in and unlogged controls, then bind bind-visibel, and then control their own display and hiding. But the problem is that when the page is refreshed, all the controls will be displayed, and then some of them will be hidden. what do I do?

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template