如何在線更改密碼?
<%
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
%>
[1]
相關(guān)文章
如何實(shí)現(xiàn)人民幣的大寫(xiě)轉(zhuǎn)換?
如何實(shí)現(xiàn)人民幣的大寫(xiě)轉(zhuǎn)換?...2006-11-11淺析Java、C/C++、JavaScript、PHP、Python分別用來(lái)開(kāi)發(fā)什么?
用任何編程語(yǔ)言來(lái)開(kāi)發(fā)程序,都是為了讓計(jì)算機(jī)干活,比如編寫(xiě)一篇文章,下載一首MP3等,而計(jì)算機(jī)干活的CPU只認(rèn)識(shí)機(jī)器的指令,所以,盡管不同的編程語(yǔ)言差異極大,最后都得“翻譯”成CPU可以執(zhí)行的機(jī)器指令2018-08-08如何用下拉列表顯示數(shù)據(jù)庫(kù)里的內(nèi)容?
如何用下拉列表顯示數(shù)據(jù)庫(kù)里的內(nèi)容?...2006-11-11如何讓用戶再次訪問(wèn)我的網(wǎng)站時(shí)不需再提交相關(guān)信息?
如何讓用戶再次訪問(wèn)我的網(wǎng)站時(shí)不需再提交相關(guān)信息?...2006-11-11