麻烦大家帮我调试一下这段代码,本人在线等,答好了,一定给分
set rs=conn.execute("select * from user_reg a,doctor_reg b where a.username='" &username& "' or b.username='" &username& "'")
if trim(request("userpassword"))<>"" then
rs("password")=md5(trim(request("userpassword")))
end if
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>alert('密码更改成功!');window.location.href='"&request.servervariables("http_referer")&"';</script>"
response.End