<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>校验表单</title>
<!-- <!-- <script> -->
<!-- // function check(){ -->
<!-- // flag=0; -->
<!-- // var rep =/^[wu4e00-u9fa5]{6,8}$/;//判断字符串是否为字母和数字的结合 -->
<!-- // var myPattern = new RegExp("^[a-zA-Z]");//以英文字母开头 -->
<!-- // var username = document.getElementById("username").value; -->
<!-- // } -->
</head>
<body>
<form action ="Servlet2?method=doGet" method="post" onsubmit ="return check()">
<table border= "0px" cellpadding="10px" cellspacing="0px"
style="width :50%; margin:auto;background:rgb(195,195,195)" bordercolor="red">
<caption>当前位置:添加个人信息</caption>
<tr>
<td>ID:</td>
<td><input type ="text" name ="id" id="id"></td>
</tr>
<tr>
<td>姓名:</td>
<td><input type="text" name="name" ></td>
</tr>
<tr>
<td>班级:</td>
<td><input type="text" name="aclass" ></td>
</tr>
<tr>
<td>课程:</td>
<td><input type="text" name="kecheng" ></td>
</tr>
<tr>
<td>成绩:</td>
<td><input type="text" name="score" ></td>
</tr>
<tr>
<th colspan ="2">
<input type ="submit" value="添加">
</th>
</tr>
</table>
</form>