-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapply.htm
42 lines (41 loc) · 1.36 KB
/
apply.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
<!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"; name="apply" method="post" id="form" onsubmit="return chenck();">
<fieldset>
<legend>用户注册</legend>
用户名:<input id="usename" type="text" name="applyname"/><br />
密 码:<input id="password" type="password" name="applyword" /><br />
<input id="login" type="submit" value="注册" name="apply" />
<input id="reset" type="reset" value="重置" />
</fieldset>
</form>
<center style="margin-top:50px;">Designed by Homker</center>
</body>
</html>
<script type="text/javascript">
function chenck()
{
if(apply.applyname.value=="")
{
alert("用户名不得为空");
apply.applyname.focus();
return false
}
if(apply.applyword.value=="")
{
alert("密码不得为空");
apply.applyword.focus();
return false
}
}
</script>