Simple registration and logon results using php and SQL:
- This method only explains the basic principles and is not applicable to actual projects.
- Before reading this method, read: PHP: basic principles of registration information storage/login information verification. some repeated operations will not be noted.
- The system running environment should have been debugged and database operations can be performed.
I. registration function 1. HTML(register.html)
Register
2. php (registerHandler. php)
First, you should create a database. the following code can be deleted after creation. Otherwise, the system will repeatedly prompt creation failure and image usage effect.
With the above code, you can enter the data created in form N _ & _ Q multiple times for verification.
2. login function 1. HTML(login.html)
Register
2. php (loginHandler. php)
III. Code explanation
Here, we put a whole section of code for database operations in collaboration with php and SQL, including the code explanation used. There is no direct relationship with the above.