要自杀了,请达人看下
<form method=post action= " " name=form1 >
<p width= "470 " align= "center " class= "listTopTd "> <img src= "../image/star.gif " width= "15 " height= "13 "> 系统登陆 </p>
<p> <img src= "../image/menu-bj-blue-1.gif " width= "654 " height= "5 "> </p>
<br>
<table background= "../impage/menu-bj-blue-1.gif " >
<tr>
<td class= "listTopTd "> 用户: </td>
<td align=left>
<input name= "name " type= "text " class= "addInput "> <%= " * "%> </td >
</tr>
<tr>
<td class= "listTopTd "> 输入密码: </td>
<td align=left>
<input name= "password " type= "password " class= "addInput "> <%= " * "%> </td >
</tr>
<tr>
<td colspan=3>
<input type=radio value= "1 " name=type checked> 学生
<input type=radio value= "2 " name=type > 教师
<input type=radio value= "3 " name=type > 管理员
</td>
</tr>
</table>
<p> <img src= "../image/menu-bj-blue-1.gif " width= "654 " height= "5 "> </p>
<br>
<%String a_id= " ";
if(!login.checkLogin())
{
%>
<script>
alert( '您没有注册或是输入有误! ');
</script>
<%
}
else
{
a_id=login.get_IDbyname();
System.out.println(a_id);
}
%>
<input type=hidden name=id value= " <%=a_id%> " />
<script>
function check()
{
var name,pass;
name=document.all( "name ").value;
pass=document.all( "password ").value;
if(name== " "||pass== " ")
{
alert( '输入不能为空 ');
}