?? modifysave.asp
字號:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=style.css rel=STYLESHEET type=text/css>
<title>用戶資料更改</title>
</head>
<!--#include file="conn.asp"-->
<%
if request("user_pass")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>用戶密碼不能為空"
else
user_pass=request("user_pass")
end if
if request("user_mail")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>用戶E-mail不能為空"
else
user_mail=request("user_mail")
end if
if request("user_adds")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>用戶地址不能為空"
else
user_adds=request("user_adds")
end if
if request("user_postcode")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>郵政編碼不能為空"
else
user_postcode=request("user_postcode")
end if
if request("user_tel")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>電話號碼不能為"
else
user_tel=request("user_tel")
end if
if request("user_namec")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>用戶真實姓名不能為空"
else
user_namec=request("user_namec")
end if
if founderr=true then
response.write errmsg
else
user_name=request("user_name")
user_company=request("user_company")
set rs=server.createobject("adodb.recordset")
sql="select * from member where user_name='"&user_name&"'"
rs.open sql,conn,3,3
rs("user_pass")=user_pass
rs("user_mail")=user_mail
rs("user_adds")=user_adds
rs("user_postcode")=user_postcode
rs("user_tel")=user_tel
rs("user_namec")=user_namec
rs.update
rs.close
response.write "<center>"
response.write "用戶資料更改完畢,請記牢你更改后的信息"
response.write "</font>"
set rs=nothing
conn.close
set conn=nothing
end if%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -