Login box

When people logged into their profiles they would see the login and password tabs at the top of the screen so they can actually login but they would still see the login the login box we would have to get rid of this which you can see below it is still there.

11079828_10207056790727840_1364669787_n

To resolve this we would have to change the code on the homepage which looked like what it is below and has no been changed so that it allows it to disappear when you log in.

This was done by putting <div class = “login-box”> with the code

<?php if(!isset($_SESSION[“username”])) { ?>

<?php } ?>

This means if the username is not entered then show the <div class =”login-box”> but when it is entered and the password is to then it would disappear.

11072064_10207056790167826_905008378_n

This is what it looks like we also put in a message so that it allows you to know that you have actually looged in to the website.

11081805_10207056790767841_530480572_n

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s