帮忙查错,谢谢。
下面的代码为什么不能正确执行?
<!--#include file ="../inc/conn.asp"-->
<%
Dim username
Dim password
username=trim(request.form("username"))
password=trim(request.form("password"))
On Error Resume Next
ssql="select * from user where username='"& username &"' and password='"&password&"'"
oRs.open ssql,oconn,0,1
if not ors.eof then
Response.Redirect "edit/add.asp"
else
Response.Redirect "admin.asp"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>用户验证</title>
</head>
<body>
</body>
</html>