尝试学生选课系统,登录界面:
<%@ page language="java" contentType="text/ html; charset=UTF-8"
pageEncoding="UTF-8" import = "java.util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="JMsevlet?method=login" method="post" onsubmit="return chech(this)">
<td align="center" colspan="2">
<h2>石家庄铁道大学选课管理系统</h2>
<hr>
</td>
<tr>
<td align="right">用户:</td>
<td>
<input type="radio" name="user" value="管理员" checked="checked">管理员
<input type="radio" name="user" value="教师">教师
<input type="radio" name="user" value="学生">学生
</td>
</tr>
<br>
<tr>
<td align="right">工号/学号:</td>
<td><input type="text" name="num"/></td>
</tr>
<br>
<tr>
<td align="right">密码:</td>
<td><input type="text" name="password"/></td>
</tr>
</tr>
<br>
<tr>
<td align="center" colspan="2">
<input type="submit" value="登录">
</td>
</tr>
</form>
</body>
</html>