?? change.asp
字號:
<!-- #include file="conn.asp" -->
<!-- #include file="ini.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=allsms%></title>
<link href="css.css" type=text/css rel=stylesheet></head>
<body>
<div id=d1><img src="logo.gif"></div>
<div id=d2 style="text-align:left;">您現(xiàn)在的位置»<A HREF="index.asp">首頁</A>»<A HREF="change.asp">會員中心</A>»</div>
<%
set rsc=server.createobject("adodb.recordset")
sqlc="select * from info where username='"&session("username")&"' and password='"&session("password")&"'"
rsc.open sqlc,conn,1,1
nr=rsc("password")
username=rsc("username")
password=rsc("password")
sex=rsc("sex")
qq=rsc("qq")
mail=rsc("mail")
quest=rsc("quest")
getpassword=rsc("getpassword")
add=rsc("add")
personalinfo=rsc("personalinfo")
vv=rsc("ntime")
set rsc=nothing
if nr="" then
response.Redirect("index.asp")
end if
if strcomp(nr,request.Form("password"))=0 then
response.Write("歡迎你!"&request.Form("username"))
response.Write("你是在"&vv&"注冊的")
session("username")=request.Form("username")
end if
if session("username")="" then
response.Redirect("index.asp")
end if
%>
<form name="form1" method="post" action="change1.asp?ac=ch" style="margin:0;">
*用戶名稱:<input name="username" type="text" id="username" value="<%=username%>"><BR>
*登陸密碼:<input name="password" type="text" id="password" value="<%=password%>"><BR>
*性別稱謂:<input name="sex" type="text" id="sex" value="<%=sex%>"><BR>
*騰訊 QQ:<input name="qq" type="text" id="qq" value="<%=qq%>"><BR>
*郵箱地址:<input name="mail" type="text" id="mail" value="<%=mail%>"><BR>
*提示問題:<input name="quest" type="text" id="quest" value="<%=quest%>"><BR>
*問題答案:<input name="getpassword" type="text" id="getpassword" value="<%=getpassword%>"><BR>
*通訊地址:<input name="add" type="text" id="add" value="<%=add%>"><BR>
*個人介紹:<input name="personalinfo" cols="30" rows="6" id="personalinfo" value="<%=personalinfo%>"><BR>
<div style="padding:3px;"><input type="submit" name="Submit" value="提交修改"> <a href="change.asp?se=y" target="_self">退出系統(tǒng)</a></div>
<% if strcomp(request.QueryString("se"),"y")=0 then
session("username")=""
response.Redirect("index.asp")
end if
%>
</form>
<%
if strcomp(request.QueryString("ac"),"ch")=0 then
set rs=server.createobject("adodb.recordset")
sql="select * from info where username='"&session("username")&"'"
rs.open sql,conn,1,3
rs("username")=request.Form("username")
rs("password")=request.Form("password")
rs("mail")=request.Form("mail")
rs("sex")=request.Form("sex")
rs("qq")=request.Form("qq")
rs("add")=request.Form("add")
rs("personalinfo")=request.Form("personalinfo")
rs("quest")=request.Form("quest")
rs("getpassword")=request.Form("getpassword")
rs.update
set rs=nothing
response.Write("修改完成!")
end if
%>
<div id=copy style="text-align:center;"><a href="http://www.youwe.org/?user" target="_parent">Copyright ©<%=webmaster%></a><BR>有為明星加工廠 設(shè)計發(fā)布</div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -