<html>
<head>
<title>潜在用户网络调查</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script language="javascript">
function validate(myform){
if(myform.name.value.length==0){
alert("请填写用户名!");
myform.name.focus();
return false;
}
if(myform.password.value.length==0){
alert("密码不能为空!");
myform.password.focus();
return false;
}
}
</script>
</head>
<body>
<form name="form1" method="POST" action="/servlet/loginlorm1"
id="form1" onsubmit="return validate(this)">
<table border="0">
<tr>
<td align="right">
姓名:
</td>
<td colspan="2" align="left">
<input type="text" name="name" size="40">
</td>
</tr>
<tr>
<td align="right">
密码:
</td>
<td colspan="2" align="left">
<input type="password" name="password" size="40">
</td>
<td>
<input type="reset" value="reset">
<input type="submit" value="submit">
</td>
</tr>
</table>
</form>
</body>
</html>