I just got done with my custom registration system that I got here, the awesome tutorial.
I have an idea that is more of an extension to that tutorial. As you see in this forum, once a person signs in, at the top you see
Last visit was: Fri Jul 06, 2012 9:42 am
User Control Panel
0 new messages
View your posts
Logout [ garret27 ]
Somebody could create an awesome tutorial that teaches how to show or hide certain divs, if a person is logged in or not.
For example: Logged Out / Guest
Register - Login
Logged In
Garret27
(1) Message
View
PHP Login and Registration System - Show and Hide divs
Re: PHP Login and Registration System - Show and Hide divs
if(isset($_SESSION['user_id'])){ user is logged in. Show div. }else{ user is not logged in. do not show div. }is this what you mean?
This same thing could probably be done with some basic Javascript too. Unfortunately though, I know about as much Javascript as I know astrophysics, so I can't help you there.