静态的登录界面的设计login.htm,代码如下:
<html>
<head>
<title>系统登录</title>
<style type="text/css">...
<!--
.style1 {...}{
font-size: 18px;
font-weight: bold;
}
.style2 {...}{font-size: 24px}
.style5 {...}{font-size: 16px}
-->
</style>
</head>
<body bgcolor="papayawhip" width="300" height="300">
<center>
<table border="2" bordercolor="black" bgcolor="lightgreen">
<tbody>
<tr>
<td><div align="center" class="style1 style2">系 统 登 录
</div></td>
</tr>
<form action="login.jsp" method="post">
<tr>
<td height="28"><span class="style5">用户名</span> <input type="text" name="uid" maxlength="20" style="width:150"></td></tr><br>
<tr>
<td><span class="style5">密 码</span> <input type="password" name="upwd" maxlength="20" style="width:150"></td></tr><br>
<center>
<tr><td><div align="center">
<input type="submit" value="登录" >
<input type="reset" value="取消">
</div></td></tr>
</center>
</form>
</tbody>
</table>
</center>
</body>
</html>
将登录用户输入的信息提交到login.jsp页面机型处理,这里为了方便,不执行数据库的访问操作,