?? saveusermod.asp
字號:
<!-- #include file="../include/bkconn.asp "-->
<!--#include file="checkUser.asp"-->
<!--#include file="test.asp"-->
<%
if Request("modifyPassword")=1 then
if Request("password1")<>Request("password2") then
response.write "密碼、確認密碼不同<br><a href='Javascript:window.history.go(-1)'>返回</a>"
response.End
end if
modifyPassword=1
end if
' response.write modifyPassword
' response.End
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set InsertCursor = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "SELECT * FROM users WHERE id="&Request("id")
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = conn
InsertCursor.Open cmdTemp, , 1, 3
InsertCursor("userID") =Request("userID")
InsertCursor("name") =Request("name")
InsertCursor("right") =Request("right")
if modifyPassword=1 then
InsertCursor("password") =Request("password1")
end if
InsertCursor.Update
InsertCursor.close
conn.close
set InsertCursor=nothing
set conn=nothing
%>
<script language=Javascript>
<!--
alert("修改成功!");
this.document.location="<%=session("adminOldUrl")%>";
-->
</script>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -