<%
if(Request("Submit1")="进入") then
admin=Request("admin")
password=Request("password")
if(admin="" or password="") then
Response.Write "用户名和密码不能为空!"
else
sql1="select count(*) from check where admin='" & admin & "' and password=" & password &""
set rs=conn.Execute(sql1)
if(rs.Fields(0).Value=0) then
Response.Write "对不起,您输入的用户名和密码不匹配,请重新输入!"
else
Response.Redirect("management.asp")
end if
rs.close
end if
End if
%>
系统反馈在 sql1="select count(*) from check where admin='" & admin & "' and password=" & password &""附近有语法错误
if(Request("Submit1")="进入") then
admin=Request("admin")
password=Request("password")
if(admin="" or password="") then
Response.Write "用户名和密码不能为空!"
else
sql1="select count(*) from check where admin='" & admin & "' and password=" & password &""
set rs=conn.Execute(sql1)
if(rs.Fields(0).Value=0) then
Response.Write "对不起,您输入的用户名和密码不匹配,请重新输入!"
else
Response.Redirect("management.asp")
end if
rs.close
end if
End if
%>
系统反馈在 sql1="select count(*) from check where admin='" & admin & "' and password=" & password &""附近有语法错误
sql1="select count(*) from [check] where admin='" & admin & "' and password='" & password &"'"