⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editdata.asp

📁 一个通讯录
💻 ASP
字号:
<% if session("logined")<>true then
	response.redirect"login.asp"
end if 
%>
<!--#include file="conn.asp"-->
<%
if request("intereye")="修改" then
dim name
dim nichen
dim sex
dim year
dim month
dim day
dim eamil
dim url
dim oicq
dim tel
dim bp
dim movetel
dim adress
dim postcode
dim sql
dim demo
dim password1
name=request("name")
nichen=request("nichen")
sex=request("sex")
year=request("year")
month=request("month")
day=request("day")
email=request("email")
url=request("url")
oicq=request("oicq")
tel=request("tel")
bp=request("bp")
movetel=request("movetel")
adress=request("adress")
postcode=request("postcode")
ip=request("remote_host")
demo=request("demo")
dbid=request("id")
if request("password1")<>trim("不改不需输入") then
	sql="select * from myclass where id="&dbid
	rs.open sql,conn,1,3
	rs("password")=trim(request("password1"))
	rs.update
	response.write "<script language='javascript'>" & chr(13)
	response.write "alert('密码已经成功修改了,请按确定返回!');" & Chr(13)
	response.write "window.document.location.href='edit.asp?action=search';"&Chr(13)
	response.write "</script>" & Chr(13)
	Response.End
end if
sql="select * from myclass where id="&dbid
rs.open sql,conn,1,3
rs("name")=name
rs("nichen")=nichen
rs("sex")=sex
rs("year")=year
rs("month")=month
rs("day")=day
rs("oicq")=oicq
rs("tel")=tel
rs("bp")=bp
rs("movetel")=movetel
rs("adress")=adress
rs("postcode")=postcode
rs("email")=email
rs("url")=url
rs("demo")=demo
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.redirect"edit.asp"
response.end
end if
%>
<%
dbid=request("id")
sql="select * from myclass where id="&dbid
rs.open sql,conn,1,3
%>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会计电算化40215班专用通讯录之个人资料修改</title>
<link rel="stylesheet" type="text/css" href="css/intereye.css">
</head>

<body topmargin="5" leftmargin="0" background="images/bg.gif">
<div align="left">
  <table border="0" cellpadding="0" cellspacing="0" width="650" height="59" style="border: 1 solid #000080">
    <tr>
      <td height="25">
        <p align="center">会计电算化40215班专用通讯录之个人资料修改</td>
    </tr>
    <tr>
      <td height="30">
        <form method="POST" action="editdata.asp?id=<%=rs("id")%>" name="form">
          <div align="left">
            <table border="0" cellpadding="0" cellspacing="0" width="650" height="190">
              <tr>
                <td height="27" width="81" align="center">姓名</td>
                <td height="27" width="235"><input type="text" name="name" size="34" value="<%=rs("name")%>"></td>
                <td height="27" width="83" align="center">昵称</td>
                <td height="27" width="246"><input type="text" name="nichen" size="34" value="<%=rs("nichen")%>"></td>
              </tr>
              <tr>
                <td height="27" width="81" align="center">密码</td>
                <td height="27" width="235"><%=rs("password")%></td>
                <td height="27" width="83" align="center">修改</td>
                <td height="27" width="246"><input type="text" name="password1" size="34" value="不改不需输入"></td>
              </tr>
              <tr>
                <td height="27" width="81" align="center">性别</td>
                <td height="27" width="235"><select size="1" name="sex">
                    <option selected>我是男生</option>
                    <option>我是女生</option>
                  </select></td>
                <td height="27" width="83" align="center">电邮</td>
                <td height="27" width="246"><input type="text" name="email" size="34" value="<%=rs("email")%>"></td>
              </tr>
              <tr>
                <td height="27" width="81" align="center">主页</td>
                <td height="27" width="235"><input type="text" name="url" size="34" value="<%=rs("url")%>"></td>
                <td height="27" width="83" align="center">OICQ</td>
                <td height="27" width="246"><input type="text" name="oicq" size="34" value="<%=rs("oicq")%>"></td>
              </tr>
              <tr>
                <td height="28" width="81" align="center">电话</td>
                <td height="28" width="235"><input type="text" name="tel" size="34" value="<%=rs("tel")%>"></td>
                <td height="28" width="83" align="center">传呼</td>
                <td height="28" width="246"><input type="text" name="bp" size="34" value="<%=rs("bp")%>"></td>
              </tr>
              <tr>
                <td height="28" width="81" align="center">手机</td>
                <td height="28" width="235"><input type="text" name="movetel" size="34" value="<%=rs("movetel")%>"></td>
                <td height="28" width="83" align="center">生日</td>
                <td height="28" width="246"><input type="text" name="year" size="6" value="<%=rs("year")%>">年<input type="text" name="month" size="3" value="<%=rs("month")%>">月<input type="text" name="day" size="3" value="<%=rs("day")%>">日</td>
              </tr>
              <tr>
                <td height="28" width="81" align="center">地址</td>
                <td height="28" width="235"><input type="text" name="adress" size="34" value="<%=rs("adress")%>"></td>
                <td height="28" width="83" align="center">邮编</td>
                <td height="28" width="246"><input type="text" name="postcode" size="34" value="<%=rs("postcode")%>"></td>
              </tr>
              <tr>
                <td height="124" width="81" align="center">留言</td>
                <td height="124" width="564" colspan="3"><textarea rows="4" name="demo" cols="86"><%=rs("demo")%></textarea></td>
              </tr>
              <tr>
                <td height="25" width="645" align="center" colspan="4"><input type="submit" value="修改" name="intereye"> 
                  <input type="reset" value="重写" name="reset"></td>
              </tr>
            </table>
          </div>
        </form>
      </td>
    </tr>
  </table>
</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -