-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
43 lines (42 loc) · 1.37 KB
/
index.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登入</title>
<style type="text/css">
form{margin:0 auto; margin-top:100px; width:269px; height:88px;}
span{margin-left:45px; width:114px; height:22px;}
legend{font-size:24px;}
</style>
</head>
<body>
<form action="login.php"; method="post" id="form" name="login" onsubmit="return chenck();">
<fieldset>
<legend>登入验证</legend>
用户名:<input id="usename" type="text" name="usename"/><br />
密 码:<input id="password" type="password" name="password" /><br />
<input id="login" type="submit" value="登入" name="login" />
<input id="reset" type="reset" value="重置" />
<a href="apply.htm">注册</a>
</fieldset>
</form>
<center style="margin-top:50px;">Designed by Homker</center>
</body>
</html>
<script type="text/javascript">
function chenck()
{
if(login.usename.value=="")
{
alert("用户名不得为空");
login.usename.focus();
return false;
}
if(login.password.value=="")
{
alert("密码不得为空");
login.password.focus();
return false;
}
}
</script>