twice音悦日本:Microsoft VBScript 运行时错误 错误 '800a000d'

来源:百度文库 编辑:高校问答 时间:2024/05/09 10:23:16
Microsoft VBScript 运行时错误 错误 '800a000d'

类型不匹配: 'md5'

/www/admin/login.asp,行 25
怎么回事??????????
<body onload="document.form.username.focus();">
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<!--#include file="../inc/md5.asp"-->
<%
if issubmit then
username=trim(replace(request("username"),"'",""))
password=trim(replace(request("password"),"'",""))
if len(username)<=20 and len(username)>=1 and len(password)<=20 and len(password)>=1 then
call opendata(1)
set rs=conn.execute("select * from admin where username='"&username&"' and password='"&md5(password)&"'")
if not rs.eof then
session("admin")=username
session("flag")=rs("flag")
call closedatabase
response.redirect "index.asp"
else
response.write "<script>alert('用户名不存在或密码密码,请重新登录!');location.href='login.asp'</script>"
end if
end if
end if
%>

不贴代码谁知道啊