[CODE]name=request("name")
password=request("password")
sql="select * from [数据库表] where name='"&name&"' and password='"&password&"'" ''
rs.open sql,conn,1,1
if rs.bof or rs.eof then
response.write"不能登录管理"
else
response.write"可以登录管理"
end if[/CODE]
改成这样就行了,
name=request("name")
password=request("password")
sql="select * from [数据库表] where name='"&name&"' "
rs.open sql,conn,1,1
if rs.bof or rs.eof then
response.write"不能登录管理"
elseif trim(rs("password"))<>password then
response.write"密码不正确!"
else
response.write"可以登录管理"
end if