PHP comprehensive exercise--mymessbox--login_PHP tutorial

WBOY
Release: 2016-07-13 10:36:35
Original
691 people have browsed it

登录页面:

login
Welcome to mymessbox!
择:

码:

login.php

登录页面处理:

= ['loginname' = ['username' = ['password' = (['vcode' = (['rcode'("localhost", "root", "111"("mymessbox"("set names utf8" ( !== "<script>alert code is wrong><span else><span><span if> (<span> == 'manager'<span><span> = "select username,password from manager where username='<span>' and password='<span>'"<span><span> = <span mysql_query>(<span><span><span> = <span mysql_num_rows>(<span><span><span if> (<span> >=1<span><span>['mgusername'] = <span><span><span echo> "<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...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template