如何在線更改密碼?
<%
id = Request("id")
newpassword = Request("password")
newpasswordtemp = Request("passwordtemp")
If newpassword <> newpasswordtemp Then
Response.Write "<center>對不起,新密碼與新密碼確認(rèn)不同.請重試!</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]
相關(guān)文章
淺析Java、C/C++、JavaScript、PHP、Python分別用來開發(fā)什么?
用任何編程語言來開發(fā)程序,都是為了讓計算機(jī)干活,比如編寫一篇文章,下載一首MP3等,而計算機(jī)干活的CPU只認(rèn)識機(jī)器的指令,所以,盡管不同的編程語言差異極大,最后都得“翻譯”成CPU可以執(zhí)行的機(jī)器指令2018-08-08如何用下拉列表顯示數(shù)據(jù)庫里的內(nèi)容?
如何用下拉列表顯示數(shù)據(jù)庫里的內(nèi)容?...2006-11-11如何讓用戶再次訪問我的網(wǎng)站時不需再提交相關(guān)信息?
如何讓用戶再次訪問我的網(wǎng)站時不需再提交相關(guān)信息?...2006-11-11