日期:2014-05-17  浏览次数:20995 次

求把这语句里面的验证码验证去掉 ???????
<%
if request.QueryString("action")="login" then
set iishost=server.CreateObject("npoint.host")
  if UCase(trim(request.Form("cord")))<>UCase(session("usercode")) then
  call SucBox("验证码输入错误.","index.asp")
  else
  if request.Form("hosttype")=1 then
rs.open "Select * from sitehost where RID=1 and FTPuser='"&trim(request.Form("user"))&"'",conn,1,1
if rs.bof and rs.eof then
rs.close
call SucBox("公会管理账号或管理密码错误.","index.asp")
else
if iishost.Eduserpassword(""&rs("FTPpass")&"",0)<>trim(request.Form("password")) then
rs.close
call SucBox("公会管理账号或管理密码错误.","index.asp")
else
session("adminSID")=Session.SessionID  
session("left_menu")="NP_host/host_left.asp"  
session("right_welcome")="NP_host/hostadmin.asp" 
session("hosttype")="1" 
session("host_id")=rs("ID") 
session("domain_domain")=rs("FTPuser") 
session("host_password")=rs("FTPpass")
session.timeout=45
response.Redirect("main.asp")
end if
end if

------解决方案--------------------
楼主贴的 if end if 不对应

只有这样改了

if request.QueryString("action")="login" then
set iishost=server.CreateObject("npoint.host")
if 1 <> 1 then
call SucBox("验证码输入错误.","index.asp")
else
if request.Form("hosttype")=1 then
rs.open "Select * from sitehost where RID=1 and FTPuser='"&trim(request.Form("user"))&"'",conn,1,1
if rs.bof and rs.eof then
rs.close
call SucBox("公会管理账号或管理密码错误.","index.asp")
else
if iishost.Eduserpassword(""&rs("FTPpass")&"",0)<>trim(request.Form("password")) then
rs.close
call SucBox("公会管理账号或管理密码错误.","index.asp")
else
session("adminSID")=Session.SessionID
session("left_menu")="NP_host/host_left.asp"
session("right_welcome")="NP_host/hostadmin.asp"
session("hosttype")="1"
session("host_id")=rs("ID")
session("domain_domain")=rs("FTPuser")
session("host_password")=rs("FTPpass")
session.timeout=45
response.Redirect("main.asp")
end if
end if