?? editinfo.asp
字號:
<!--#include file="conn.asp"-->
<%
tname=request("tname")
nianji=request("nianji")
banji=request("banji")
email=request("email")
sql="select * from tbuser where username='"&request.cookies("username")&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
if request("update")="ok" then
if trim(tname)="" then
response.redirect "editinfo.asp?error=wrong"
else
rs("tname")=trim(tname)
rs("nianji")=trim(nianji)
rs("banji")=trim(banji)
rs("email")=trim(email)
rs.update
Response.Cookies("nianji")=nianji
Response.Cookies("banji")=banji
Response.Cookies("email")=email
Response.Cookies("tname")=tname
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<base target="_self">
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body topmargin="0" leftmargin="0" style="background-color: #799AE1; color:#000000">
<form method="POST" name="editinfo" action="editinfo.asp?error=ok&update=ok" >
<center>
<table class=sec_menu border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" cellspacing="0" height="142" width="100%"><%
if request("error")="" then
else
if request("error")="ok" then
%> <tr>
<td colspan="2" height="16" width="196"><font color="#FF0000">個人信息修改成功! 請刷新!</font> </tr>
<%
else
%><tr>
<td colspan="2" height="16" width="196"><font color="#FF0000">姓名不能為空!</font> </tr>
<%
end if
end if
%></td>
<tr>
<td height="24" width="66">姓 名:</td>
<td height="24" width="75">
<input name="tname" size="11" onblur="this.className='s01'" onfocus="this.className='inputedit';this.select()" class="s01" value="<%=tname%>"></td>
</tr>
<tr>
<td height="24" width="66">年 級:</td>
<td height="24" width="75"></font>
<input name="nianji" size="11" onblur="this.className='s01'" readonly onfocus="this.className='inputedit';this.select()" class="s01" value="<%=nianji%>">
</td>
</tr>
<tr>
<td height="24" width="66">班 級:</td>
<td height="24" width="75">
<input name="banji" size="11" onblur="this.className='s01'" readonly onfocus="this.className='inputedit';this.select()" class="s01" value="<%=banji%>"></td>
</tr>
<tr>
<td height="24" width="66">電子郵箱:</td>
<td height="24" width="75">
<input name="email" size="11" onblur="this.className='s01'" onfocus="this.className='inputedit';this.select()" class="s01" value="<%=email%>"></td>
</tr>
<tr>
<td colspan="2" height="22" width="153">
<p align="center">
<span lang="en-us"> </span>
<input border="0" value="保 存" name="I1" type="submit" class="s02"></td>
</tr>
</table>
</center>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -