?? user_editdjchk.asp
字號:
<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<link href="inc_style.css" rel="stylesheet" type="text/css">
<%
dim rs,sql,id,username,email,a,b,c,d
a=trim(request("a"))
b=trim(request("b"))
c=trim(request("c"))
d=trim(request("d"))
id=trim(request("id"))
if not isnumeric(a) or a="" then
response.write "<li>道具只能為數字!"
cl
response.end
end if
if not isnumeric(b) or b="" then
response.write "<li>道具只能為數字!"
cl
response.end
end if
if not isnumeric(c) or c="" then
response.write "<li>道具只能為數字!"
cl
response.end
end if
if not isnumeric(d) or d="" then
response.write "<li>道具只能為數字!"
cl
response.end
end if
if not isnumeric(id) or id="" then
response.write "<li>參數錯誤1!"
cl
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select a,b,c,d from [user] where id="&id
rs.open sql,conn,1,3
if rs.eof or rs.bof then
response.write "<li>參數錯誤!"
cl
response.end
end if
rs("a")=a
rs("b")=b
rs("c")=c
rs("d")=d
rs.update
rs.close
set rs=nothing
closedb
response.write "<li>修改道具成功!"
call cl()
%>
<%sub cl()%>
<body onLoad="setTimeout(window.close, 2000)">
<%end sub%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -