PHP develops simple book background management system password change function
We completed the administrator password modification page in the previous section
This section will implement this function
##Need to give ;Add an onClick event Use javascript to determine the original password, new password, and confirm the new password. All of them must be empty. The new password and the confirmed password must be consistent. Use the database SQL statement to query whether the original password entered matches the password filled in the text box If the match is successful, the modification function of the SQL statement will be used to modify the password in the database After the password is successfully modified, return to the login page and log in again using the new password.alert('修改成功,请重新进行登陆!');window.location='login.php'"; exit(); } else ?>