Question: I am building a website and need help creating a login and logout form using PHP , HTML and MySQL . This assignments requirements are

I am building a website and need help creating a login and logout form using PHP, HTML and MySQL. This assignments requirements are to
1. "allows users to create a new login and login to the site, and session control to track users."
2. "need to add a form that will allow users to enter their login information and when submitted it will connect to the database to check their information and allow them to connect."
3. "add a button that allows the users to click it to log out. Once the button is clicked, it should redirect the user to the logout page you developed earlier. This page should tell them they logged out."
Overall, I need to be able to have users login with a username and password, and when it is valid information be directed to a welcome page. The welcome page at this point just needs to say "Welcome, [username]".
I have the database created already named "userslogin" with rows "Username", "Password", "Email".
I just need the core code to get the site working, I will make it look nice and add the content later. Thank you!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!