ASP密码加密的问题
<!--#include file="odbc_mdb.asp"--><!--#include file="md5.asp" -->
<%
on error resume next
if Trim(request("username"))="" and Trim(request("upwd"))="" then
Response.write"<p align=center><font size=5 color=red>对不起,姓名或密码为空,请确认输入才能注册</font>"
else
if Trim(request("pwd"))<>"" then mdpwd = md5(Request.Form("pwd")) end if
strsql="select * from users where username='"&request.form("username")&"'"
set rs=db.execute(strsql)
if not(rs.bof and rs.eof) then
response.Write "<p align=center><font color=red>这个用户名已经被注册!请重新注册一个用户名.</font>"
else
dim username,upwd,type1,sex,love,career,tel,addr,email,intro
username=request("username")
upwd=request("mdpwd")
type1=request("type1")
sex=request("sex")
love=request("love")
career=request("career")
tel=request("tel")
addr=request("addr")
email=request("email")
intro=request("intro")
dim sql,svalues
sql="INSERT INTO users(username,upwd,type1,love,career,tel,addr,email,intro"
svalues="values('"&username&"','"&pwd&"','common','"&love&"','"&career&"','"&tel&"','"&addr&"','"&email&"','"&intro&"'"
if sex<>"" then
sql= sql &",sex"
svalues= svalues&","&"'"&sex&"'"
end if
sql=sql&")"&svalues&")"
Response.write sql
Response.End()
输出ASP语句时密码为空,其它为正常!!
请问这是什么回事?