一個(gè)讓用戶更改密碼的容易程序!
發(fā)表時(shí)間:2024-06-10 來(lái)源:明輝站整理相關(guān)軟件相關(guān)文章人氣:
[摘要]<% id = Request("id") newpassword = Request("password") newpasswordtemp = Request("passwordtemp") If newpassword <...
<%
id = Request("id")
newpassword = Request("password")
newpasswordtemp = Request("passwordtemp")
If newpassword <> newpasswordtemp Then
Response.Write "<center>對(duì)不起,新密碼與新密碼確認(rèn)不同!請(qǐng)重試!</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
%>
此程序非常簡(jiǎn)單,相信各位都會(huì)懂!跟“如何使用 Microsoft Access 和 Active Server Pages 加密你的頁(yè)面 !”的結(jié)合,實(shí)現(xiàn)讓用戶更改密碼就簡(jiǎn)單了!
如要看例子請(qǐng)到http://www.hy.zj.cn 的留言板去! (出處:熱點(diǎn)網(wǎng)絡(luò))