首页  >  文章  >  后端开发  >  php综合练习--mymessbox--登录_PHP教程

php综合练习--mymessbox--登录_PHP教程

WBOY
WBOY原创
2016-07-13 10:36:35685浏览

登录页面:

php综合练习--mymessbox--登录_PHP教程 login
Welcome to mymessbox!
  择:

  码:
php综合练习--mymessbox--登录_PHP教程
login.php

登录页面处理:

php综合练习--mymessbox--登录_PHP教程 = ['loginname' = ['username' = ['password' = (['vcode' = (['rcode'("localhost", "root", "111"("mymessbox"("set names utf8" ( !== "<script>alert('the code is wrong!');window.location.href='login.php'</script>" ( == 'manager' = "select username,password from manager where username='' and password=''" = ( = ( ( >=1['mgusername'] = "<script>alert('login success!');window.location.href='./manager/mg_index.php'</script>" "<script>alert('Login failed!The username or password was wrong!Please login again!');window.location.href='login.php'</script>" = "select username,password from user where username='' and password=''" = ( = ( ( >=1['username'] = "<script>alert('login success!');window.location.href='./user/index.php'</script>" "<script>alert('Login failed!The username or password was wrong!!Please login again!');window.location.href='login.php'</script>" loginok.php

先发这两个吧,虽然还没有完成,还有很多漏洞百出的地方,但是我会一点一点去改。

希望哪个大神在看的时候,能多多指点。不胜感激!

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/738536.htmlTechArticle登录页面: : 0 :0 : font-family: '宋体', width: :17% width: -left: - margin-left: margin-left: : font-size: -family: -bottom: /style/headbody div id="wrap" div id="welcome"W...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn