我的程序怎么一直都提示出生错误呀?
<form method="POST" action="enter.asp">
<table border="1" width="100%" cellspacing="0" cellpadding="0" bgcolor="#00FFFF" height="95">
<tr>
<td width="100%" colspan="2" height="16">
<p align="center">用户登陆</td>
</tr>
<tr>
<td width="23%" height="23">学号:</td>
<td width="77%" height="23"><input type="text" name="xh" size="20"></td>
</tr>
<tr>
<td width="23%" height="23">密码:</td>
<td width="77%" height="23"><input type="password" name="password" size="20"></td>
</tr>
<tr>
<td width="23%" height="25"> <input type="submit" value="登陆" name="B1"></td>
<td width="77%" height="25"><input type="reset" value="全部重写" name="B2"></td>
</tr>
</table>
</form>
enter.asp的代码是:
<!--#include file="conn.asp" -->
<%
response.Buffer=true
names=request("xh")
password=request("password")
if names="" or password="" then
%>
<script language="javascript">
if (confirm("请输入你的信息"))
location.href="denglu.asp";
</script>
<%
else
sql="select * from stu where xh='"&names&"' and password='"&password&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,2,2
if not rs.eof then
session("login")=rs("id")
response.Redirect"jinru.asp?id="&rs("id")&""
else
%>
<script language="javascript">
if (confirm("请输入正确的信息"))
location.href="denglu.asp";
</script>
<%
end if
end if
%>
jinru.asp代码:v
<!--#include file="conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
sql="select * from user where id="&request("id")&""
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,2,2
%>
<% =rs("xh") %>
<p>您已经进入本管理系统,请按照你个人需求点击操作! </p>
<p><a href="modify.asp?id=<%=rs("id")%>">修改个人密码</a></p>
<p><a href="xinxi.asp?id=<%=rs("id")%>">查看个人信息</a></p>
</body>
</html>
怎么一直都不对呀 ?