<!--#include file="connoklin.asp"-->
<!--#include file="inc/md5.asp" -->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%if session("linok")="" then
response.redirect "index.asp"
response.end
end if%>
<%
if instr(request.servervariables("http_referer"),"http://"&request.servervariables("http_host") )<1 then
Response.Redirect "index.asp"
response.end()
end if%>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from reguser where username='"&session("linok")&"'",conn,1,3
if rs.eof then
response.write "出错了"
response.end
end if
if trim(request("password"))<>"******" then
rs("password")=md5(trim(request("password")))
end if
rs("email")=trim(request("email"))
rs("cname")=trim(request("cname"))
rs("personame")=trim(request("personame"))
rs("tel")=trim(request("tel"))
rs("addr")=trim(request("addr"))
rs.update
rs.close
set rs=nothing
response.write"<script>alert('修改成功！');</script>"
response.write"<script>location.href='index.asp';</script>"
%>