Jump to content

PHP Login


mrkfox

Recommended Posts

Hi, I'm pretty new to PHP and I'm currently trying to make a simple e-commerce website. I've got the basic regustration to work aswell as the ability to log in. Now this is where my problem starts. Currently the username text box, password text box and sig in button are loacted on a form on my index.php. Once i log in I'm redirected the a page called login.php which gives me the option to go back to the main index.php. I want to be able to display the message of succesful login on the same form that contains the text boxes and sign in button. Obviously i want to get rid of them before the message is displayed. I've figured out how to display the username once a user is logged in and that will also be displayed in the form. So basically what i want to achive:

 

1. Once sign in button is pressed both the username text box and password text box to dissapear with the sign in button. and be replaced with the username for the rest of the session.

 

Once that is done i will create a log out button to end the session and again display the log in boxes and button.

 

Thanks,

Sorry for the long essay.

Link to comment
https://forums.phpfreaks.com/topic/156529-php-login/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.