$_SESSION[ user_password ] != )) { (Submit web site) include logged_user.php ; } else
$_SESSION[ user_password ] != )) { include logged_user.php ; } else { include unlogged_user.php ; } ?> 2. Create unlogged_user.php and logged_user.php so you can have different content show up depending on whether or not a user is logged in. This first page will be unlogged_user.php and will simply contain some information about the benefits that registering provides and how to go about registering:
Welcome to the home page!
You are currently not logged into our system.
Once logged in, you will have access to your personal area, along with other user information.
If you have already registered, click here to login, or if would like to create an account, click here to register.
3. Next, create the page that tells users they are logged in; then you can show links to the users own personal area (which you create later) to allow them to update personal information, or delete their account entirely. Call this one logged_user.php and use the following code:
Welcome to the home page!
Thank you for logging into our system .
You may now click here to go into your own personal information area, and update or remove your information should you wish to do so.
377 User Logins, Profiles, and Personalization
You want to have a cheap webhost for your apache application, then check apache web hosting services.