<%if Request.Cookies("venshop")("user_name")="" then
response.redirect "login.asp?comurl=modify.asp"
response.end
elseif request("action")="modify" then%>
<%
user_name=Request.Cookies("venshop")("user_name")
chklogin(user_name)
set rs=server.createobject("adodb.recordset")
sql="select * from venshop_user where username='"&user_name&"'"
rs.open sql,conn,1,3
rs("usermail")=DelStr(request("user_mail"))
rs("user_adds")=DelStr(request("user_adds"))
rs("user_postcode")=DelStr(request("user_postcode"))
rs("user_tel")=DelStr(request("user_tel"))
rs("user_namec")=DelStr(request("user_namec"))
rs("user_mobile")=DelStr(request("user_mobile"))
rs.update
rs.close
set rs=nothing
response.write "用户资料更改完毕,返回 | "%>
<%else%>
<%user_name=Request.Cookies("venshop")("user_name")
chklogin(user_name)
set rs=server.createobject("adodb.recordset")
sql="select * from venshop_user where username='"&user_name&"'"
rs.open sql,conn,1,1
if rs.eof then
response.redirect "login.asp?comurl=modify.asp"
response.end
else%>
<%end if
rs.close
set rs=nothing%>
<%end if%>
|