是不是这样的…………?
set rs=server.createobject("adodb.recordset")
sql="select * from Member"
rs.open sql,conn,1,3
rs.addnew
name=request.form("name")
sex=request.form("sex")
jclass=request.form("jclass")
pass=md5(request.form("pass"))
Xming=request.form("Xming")
post=request.form("post")
fax=request.form("fax")
tel=request.form("tel")
mob=request.form("mob")
email=request.form("email")
add=request.form("add")
inc=request.form("inc")
ask=request.form("ask")
question=request.form("question")
rs("name")=name
rs("sex")=sex
rs("pass")=pass
rs("jclass")=jclass
rs("Xming")=Xming
rs("post")=post
rs("tel")=tel
rs("mob")=mob
rs("fax")=fax
rs("mail")=email
rs("add")=add
rs("inc")=inc
rs("ask")=ask
rs("question")=question
rs("regip")=request.servervariables("remote_addr")'记录注册ip
rs("regtime")=now()'=在数据库里插入当前的时间,格式为年,月,日
if jclass=1 then
rs("incuser")=1
else rs("incuser")=0
end if
rs.update
rs.close
conn.close