如何讓用戶也能修改密碼?
<%
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í)將數(shù)據(jù)裝載到Application 或 Session 對(duì)象中去?
何時(shí)將數(shù)據(jù)裝載到Application 或 Session 對(duì)象中去?...2006-11-11如何防范利用刷新來(lái)“作弊”的計(jì)數(shù)器?
如何防范利用刷新來(lái)“作弊”的計(jì)數(shù)器?...2006-11-11如何把一個(gè)Excel文件放到ASP頁(yè)面中去?
如何把一個(gè)Excel文件放到ASP頁(yè)面中去?...2006-11-11