Login page for developing simple voting system with PHP

The administrator login page is in the admin.php file

114.png

##Use a
form to create a login front-end page

 

give Login an id value

id="Submit10", here we set a login password$pwd = admin,

Friends enter admin directly You can log in to the

administrator operation page.

The password pwd value obtained using POST method matches the pwd value of SESSION. If the password entered in the text box is admin, the login is successful and you will jump to Operation page; otherwise it will prompt login failure.

alert('登陆成功!');window.location='admin.php'"; }else{ echo ""; } } ?>
Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!