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

📄 editinfo.asp

📁 朱不正在线考试系统 2008源码
💻 ASP
字号:
 <!--#include file="conn.asp"-->
 <%
  tname=request("tname")
username=request("username")
 nianji=request("nianji") 
  banji=request("banji")
  sfzhm=request("sfzhm")
  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("username")=trim(username)   
    rs("nianji")=trim(nianji)
    rs("banji")=trim(banji)
    rs("sfzhm")=trim(sfzhm)
   rs("email")=trim(email)
   
   rs.update
   
    Response.Cookies("nianji")=nianji
    Response.Cookies("username")=username
    Response.Cookies("banji")=banji
    Response.Cookies("sfzhm")=sfzhm
    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="username" size="11" onblur="this.className='s01'" onfocus="this.className='inputedit';this.select()" class="s01" value="<%=username%>"></td>
      </tr>
<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">
        <input name="sfzhm" size="11" onblur="this.className='s01'" onfocus="this.className='inputedit';this.select()" class="s01" value="<%=sfzhm%>"></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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 + -