First introduct...LOGIN

First introduction to PHP development login page

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

login.jpg

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

Processes the data received from the login.html page and compares it with the database data
File namelogin.htmllogin.php


##Main functions


Front-end display page


Next Section

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>页面登录</title> </head> <body> <h2>登录页面初识</h2> </body> </html>
submitReset Code
ChapterCourseware