登陆验证!!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<script language="javascript">
function Mycheck(){
if(form1.username.value=="")
{alert("用户名称不能为空!!");form1.username.focus();return ;}
if(form1.password.value=="")
{alert("用户密码不能为空!!");form1.password.focus();return ;}
form1.submit();
}
</script>
<body>
<!--#include file="top.asp"-->
<table width="765" border="-1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#9CA6C6" bordercolordark="#CCE3FF" height="144">
<tr>
<td height="142" align="center" width="255" >
<div>
<table><tr><td>
<form name="form1" method="post" action="dl1.asp">
<table width="231" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#9CA6C6" bordercolordark="#CCE3FF" height="119">
<tr><td colspan=2>
<p align="center"><font size="5">登 录</font></td></tr>
<tr>
<td height="46" width="77">用户名称 </td>
<td height="46" width="148"><input name="username" type="text" id="username" ></td>
</tr>
<tr>
<td height="36" width="77">用户密码</td>
<td height="36" width="148"><input name="password" type="password" id="password" ></td>
</tr>
<tr>
<td colspan=2><p align="center"><input type="button" name="Submit" onclick="Mycheck()"value="登录">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</td>
</tr>
</table></div>
<td height="142" align="center" width="255"><!--#include file="zx1.asp"--></td>
<td height="142" align="center" width="255" > 姓名:<%=session("name")%> 密码:<% =session("pwd") %> 等级:<%=session("dj")%></td>
</tr>
</table>
</body>
</html>
问题:为什么只有把<!--#include file="zx1.asp"-->这一句去了才能进行登陆验证啊!!!!!