<%

id = Request("id")

newpassword = Request("password")

newpasswordtemp = Request("passwordtemp")

 

If newpassword <> newpasswordtemp Then

Response.Write "<center>对不起,新密码与新密码确认不同.请重试!</center>"

Response.End

End If

Set conn = Server.CreateObject("ADODB.Connection")

DBPath = Server.MapPath("userinfo.mdb")

conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath

Set rs = Server.CreateObject("ADODB.Recordset")

sql="update userinfo set 密码='" & newpassword & "' where id="&id

rs.Open sql, conn, adOpenDynamic, adLockPessimistic

%>

[1]

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部