<%
if session("admin") = "" then%>
<script language=vbscript>
alert ("系统超时或验证错误,请重新登陆!")
location.href = "index.asp"
</script>
<%
End if
%>
<HTML><HEAD><TITLE>修改密码</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="main.css" rel=stylesheet type=text/css>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<script language="javascript">
function check(theForm){
if (theForm.username.value=="")
{
alert("请填入您的用户帐号!");
theForm.username.focus();
return false;
}
if (theForm.oldpassword.value=="")
{
alert("请填入您的旧密码!");
theForm.oldpassword.focus();
return false;
}
if (theForm.newpassword.value=="")
{
alert("请填入您的新密码!");
theForm.newpassword.focus();
return false;
}
if (theForm.newpassword.value!=theForm.password_qr.value)
{
alert("新密码不一样,请重新确认新密码!");
theForm.password_qr.focus();
return false;
}
}
</script>
</HEAD>
<BODY aLink=#000000 bgColor=#FFD89D leftMargin=0 link=#000000 text=#000000
topMargin=0 vLink=#000000><br><br>
<div align="center">
<TABLE border=0 cellPadding=0 cellSpacing=0 width=415 height="267">
<TBODY>
<TR>
<TD align=middle height="267" width="436"><form name="form1" method="post" action="userpasssave.asp">
<table width="100%" border="1" cellspacing="0" bordercolor="#FF0000" bgcolor="#D4D0C8">
<tr>
<td bgcolor="#993333"><table width="100%" border="1" cellspacing="0">
<tr>
<td colspan="2" bgcolor="#00FF00"><p align="center">密码修改</p></td>
</tr>
<tr>
<td width="34%"><div align="right">用户帐号:</div></td>
<td width="66%"><label>
<input name="username" type="text" id="username">
</label></td>
</tr>
<tr>
<td><div align="right">旧密码:</div></td>
<td><label>
<input name="oldpassword" type="text" id="oldpassword">
</label></td>
</tr>
<tr>
<td><div align="right">新密码:</div></td>
<td><label>
<input name="newpassword" type="text" id="newpassword">
</label></td>
</tr>
<tr>
<td><div align="right">确认新密码:</div></td>
<td><label>
<input name="password_qr" type="text" id="password_qr">
</label></td>
</tr>
<tr>
<td colspan="2"><label>
<div align="center">
<input type="submit" name="Submit" value="提交">
</div>
</label></td>
</tr>
</table></td>
</tr>
</table>
</form>
</TD>
</TR></TBODY></TABLE></div></BODY>
</HTML>
这个表单不能验证,谁能帮我改一下吗?
谢谢了