I’m using the login form of this website http://www.html-form-guide.com/php-form/php-login-form.html, And i would like to display:
If you are connected, display Welcome ["name"]
Else if you are not, display Sign Up, Login.
I tried different ways, but it doesn’t work. Could you help me please.
Thank you a lot, regards.
In addition with Mr.Alien answer, Use SESSION function to do this.
Put a
user_idin session, show welcome message if session been set, show Sign up | Login if session not been set.