This article is mainly for you to introduce the PHP+MYSQL implementation of simple login registration Change password system, with a certain reference value, interested in small partners can refer to
For PHP and MySQL connection in many blogs are explained, in order to the MySQL query, modify, insert and other operations to master, this article describes how to use MySQL to do a login to register to change the password page.
Among them, the following
1. Login- to query the contents of the database and verify that the information in the HTML matches the database;
2. Registration- that is, to insert the contents of the database, register the account number and password;
3. Change the password- that is, modify the contents of the database.
These three operations, I used 8 PHP and HTML text to establish the specific Code section
1. Login Main interface index.html:
<p> </p><pre name= "code" class= "HTML" > <! DOCTYPE html>
2. Login Background Operation enter.php:
<!doctype html>
3. After the successful login Welcome interface welcome.php:
<!doctype html>
4. Change the password of the main interface alter_password.html:
<! DOCTYPE html>
5. Background operation to change password alter_password.php:
<!doctype html>
6. Register the account's main interface register.html:
<!doctype html>
7. Background operation of registered account register.php:
<!doctype html>
8. Log out when illegal login operation exit.php:
<!doctype html>
9.mysql Database Building Section