asp+access问题:参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。 10
代码如下:<%dimadmin,password,verifycodeadmin=replace(trim(request("admin")),"'","")passwo...
代码如下:
<%dim admin,password,verifycode
admin=replace(trim(request("admin")),"'","")
password=md5(replace(trim(request("password")),"'",""))
verifycode=replace(trim(request("verifycode")),"'","")
adminIP =Request.ServerVariables("Remote_Addr")
if cstr(session("getcode"))<>cstr(trim(request("verifycode"))) then
dim ConGratUlatIons
set ConGratUlatIons=server.CreateObject("adodb.recordset")
ConGratUlatIons.Open "select * from adminlog " ,conn,1,3
ConGratUlatIons.AddNew
ConGratUlatIons("adminlog_name")=admin
ConGratUlatIons("adminlog_ip")=adminIP
ConGratUlatIons("adminlog_event")="验证码不正确,登录失败!"
ConGratUlatIons.update
ConGratUlatIons.Close
set ConGratUlatIons=nothing
response.Write "<script LANGUAGE='javascript'>alert('请输入正确的验证码!');history.go(-1);</script>"
response.end
end if
%>
提示错误是在ConGratUlatIons.Open "select * from adminlog " ,conn,1,3
请各位大虾帮忙分析一下可能是什么错误。我是菜鸟,刚学 展开
<%dim admin,password,verifycode
admin=replace(trim(request("admin")),"'","")
password=md5(replace(trim(request("password")),"'",""))
verifycode=replace(trim(request("verifycode")),"'","")
adminIP =Request.ServerVariables("Remote_Addr")
if cstr(session("getcode"))<>cstr(trim(request("verifycode"))) then
dim ConGratUlatIons
set ConGratUlatIons=server.CreateObject("adodb.recordset")
ConGratUlatIons.Open "select * from adminlog " ,conn,1,3
ConGratUlatIons.AddNew
ConGratUlatIons("adminlog_name")=admin
ConGratUlatIons("adminlog_ip")=adminIP
ConGratUlatIons("adminlog_event")="验证码不正确,登录失败!"
ConGratUlatIons.update
ConGratUlatIons.Close
set ConGratUlatIons=nothing
response.Write "<script LANGUAGE='javascript'>alert('请输入正确的验证码!');history.go(-1);</script>"
response.end
end if
%>
提示错误是在ConGratUlatIons.Open "select * from adminlog " ,conn,1,3
请各位大虾帮忙分析一下可能是什么错误。我是菜鸟,刚学 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询