总是报错“缺少对象rs”
我做的是一个身份验证窗口
数据库连接文件是conn.asp
<%
Set conn = Server.Createobject( "ADODB.Connection ")
connstr = "Provider=SQLOLEDB;Data Source=(local);database=test;user id=sa;password= ' '; "
conn.open connstr
%>
登陆窗口文件是login.asp
<html>
<head>
<title> 登陆窗口 </title>
<!--#include file= "conn.asp "-->
</head>
<body>
<form name= "form1 " method= "post " action= "login.asp?action=checkLogin ">
<table width= "300 " border= "0 " align= "center ">
<tr>
<td width= "98 " height= "30 "> <div align= "center "> 用户名: </div> </td>
<td width= "192 "> <input name= "username " type= "text " id= "username "> </td>
</tr>
<tr>
<td> <div align= "center "> 密 码: </div> </td>
<td height= "30 "> <input name= "password " type= "password " id= "password "> </td>
</tr>
<tr>
<td height= "30 "> </td>
<td> <input name= "Submit " type= "submit " value= "提交 ">
<input type= "reset " name= "Submit2 " value= "重置 "> </td>
</tr>
<tr>
<td height= "30 "> </td>
<td> 新用户注册 </td>
</tr>
<tr>
<td height= "30 "> </td>
<td> 后台管理 </td>
</tr>
</table>
</form>
<%
If Request( "action ")= "checkLogin " then
Call checkLogin()
End If
%>
<%
Sub checkLogin()
Dim sql,rs,username,password
username=trim(request( "username "))
password=trim(request( "password "))
If username= " " Then
response.write " <script> window.alert( '请输入用户名! ');_history.back(); </script> "
Else
If password= " " Then
response.Write " <script> window.alert( '请输入密码! ');_history.back(); </script> "
E