这个是对上次博文修改和完善,在纪老师的要求上提高。
主要有八个页面
login.php 登陆页面
check.php 验证页面
mysql_connect.php 数据库连接页面
ms_login.php 从数据库中提取数据验证
register.php 注册页面
register_1.php 是注册验证,并写入到数据库中
showing.php 图片验证码
huangying.html 是登陆成功的页面
//=================================================
login.php 登陆页面
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎您的到来</title>
</head>
<style type="text/css">
.div
{
height:1000px;
width:700px;
text-align:center;
margin:20px;
}
.text
{
}
.button
{
font-size:10px;
}
</style>
<body>
<form method="post" action="check.php">
<div class="div">
用户名<input type="text" name="name" >
密码:<input type="password" name="password">
<div class="button">
<input type="submit" value="提交">
<input type="reset" value="清除">
<a href="register.php" >注 册</a>
</div>
</div>
</form>
</body>
</html>
//================================