当前位置: 代码迷 >> ASP >> 在线 类型不匹配: '[string: ""]'
  详细解决方案

在线 类型不匹配: '[string: ""]'

热度:85   发布时间:2013-06-25 23:45:42.0
在线求助 类型不匹配: '[string: ""]'

在线求助!!! 

错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: '[string: ""]'
/login.asp, 第 2 行




if request("send")="ok" then
if (int(session("safecode"))=int(request("confirm"))) then  '如果验证码正确的话,去验证用户名
set rs=server.createobject("adodb.recordset")
sql="select * from users where username='" & request("username") & "'"
rs.open sql,conn,1,3
if rs.eof then
call rs_conn_close '验证数据库用户名模块
response.write "<script>alert('用户名不存在!');history.back();</script>"
response.end
else
if  request("password")<>rs("password") then
call rs_conn_close '验证数据库密码模块
response.write "<script>alert('密码不正确!');history.back();</script>"
response.end
else '全部正确后写入服务器端变量
Session("Passed")=true
Session("username")=rs("username")
Session("admin")=rs("admin")
end if
end if
else
response.write "<script>alert('验证码不正确!');history.back();</script>"
response.end
end if
end if

------解决方案--------------------
if session("safecode")=request("confirm") then
  相关解决方案