PHP login page
Login page in our Login pages are indispensable for things that we frequently come into contact with in daily life, such as our QQ login, WeChat login, major websites, forums, blogs, and mobile apps. This tutorial will teach you how to make our login page
Let’s first take a look at the login page picture below
The picture above is a relatively simple login page
The login page is nothing more than allowing users to Enter the user name and password
Page analysis
We can see from the above page that we have three login pages The area requires the user to enter, which are username, password, and verification code
Username: It is our information, which can be text, email, letters, etc., see each Requirements for a website
Password: We need to enter the password to verify whether it is the person logging in
Verification code: It is to prevent malicious cracking Passwords, ticket swiping, and forum flooding can effectively prevent a hacker from using a specific program to brute force a specific registered user from making continuous login attempts.
Among them, our users The name and password need to be stored in the database. We have verified that our user information and verification have been registered. The verification code will change every time it is refreshed, so there is no need to store the database. In the next chapter, we will teach you how to build our Database to store our user information
Create the files we need
File name | login.html | login.php |