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

📄 updateuser.asp

📁 一个公司营销系统
💻 ASP
字号:
<!--#include file="../conn.asp"-->
<%
if session("username")="" or session("password")="" then
   session.timeout=5
   response.write "<script language='javascript'>"
   response.write "alert('账号或密码错误!');"
   response.write "history.go(-1);"
   response.write "</script>"
   response.end
else
   username=session("username")
   password=session("password")   
end if
dim sql 
dim rs 
sql="select * from user  where username like '" & username & "' and password like '" & password & "'" 
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,3,2
%>

<html>
<head>
<style>
<!--
p{color:000000;FONT-FAMILY: "??"; font-size: 9pt ;line-height: 20px;}
a {color:#000000;FONT-FAMILY: "??"; font-size: 9pt ;text-decoration:none}
a:hover {color:red;text-decoration:underline;; FONT-FAMILY: "??"; font-size: 9pt}
-->
<!--
a:link {FONT-FAMILY: "??";  font-size: 9pt; color:#000000; text-decoration: none}
td { color:#0000000;FONT-FAMILY: "??"; font-size: 9pt ;line-height: 18px; } a:visited {FONT-FAMILY: "??";  font-size: 9pt; color:#000000}
-->
</style>

<script>
function chkemail(a)
  {    var i=a.length;
       var temp = a.indexOf('@');
       var tempd = a.indexOf('.');
       if (temp > 1) {
          if ((i-temp) > 3){
               if (tempd!=-1){
                     return 1;
               }

          }
        }
      return 0;
  }
function checkForm()
{if (AddUserForm.password2.value != AddUserForm.password.value) {      alert("两次输入密码不同!");      return false;    }
 if ((document.AddUserForm.bank.value=="")||(document.AddUserForm.email.value=="")||(document.AddUserForm.nickname.value==""))
 {
  alert("请正确输入表中信息!");
 }
 else if (chkemail(document.AddUserForm.email.value)==0)
 {
  alert("请输入正确的Email地址!");
 }
 else {
  document.AddUserForm.submit();
 }
}
</script>
<style>
<!--
p{color:000000;FONT-FAMILY: "宋体"; font-size: 9pt ;line-height: 18px;}
a {color:#000000;FONT-FAMILY: "宋体"; font-size: 9pt ;text-decoration:none}
a:hover {color:red;text-decoration:underline;; FONT-FAMILY: "宋体"; font-size: 9pt}
-->
a:link {FONT-FAMILY: "宋体";  font-size: 9pt; color:#000000; text-decoration: none}
td { color:#0000000;FONT-FAMILY: "宋体"; font-size: 9pt ;line-height: 18px; } a:visited {FONT-FAMILY: "宋体";  font-size: 9pt; color:#000000}
-->
</style>
<title>修改个人信息</title>
<link rel="stylesheet" type="text/css" href="../css.css">
</head>

<body bgcolor="#7bb5de">
<div align="center">

  <form METHOD="post" action="updatesave.asp">
    <div align="center">
      <center>
    <table border="0" width="60%" cellpadding="4" class=lowcolor cellspacing="0" style="border-collapse: collapse">
      <tr bgcolor="#ffffdd"> 
        <td align="right" width="28%" background="../Images/lvbg.gif" height="28"> 
          <div align="center">用 户 名:</div>
        </td>
        <td width="72%" align="left" background="../Images/lvbg.gif" height="28"><font color="red"><%=username%></font></td>
      </tr>
      <tr> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          密码:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="password" name="password" value="<%=rs("password")%>" size="20">
          <font color="#FF0000">**必须填写</font> </td>
      </tr>
      <tr bgcolor="#ffffdd"> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          确认密码:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"><font color="red"> 
          <input type="password" name="password2" value="<%=rs("password")%>" size="20">
          </font><font color="#FF0000">**必须填写</font></td>
      </tr>
      <tr> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          银行卡卡号:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=32 name="card" size="30" value="<%=rs("card")%>">
          <font color="#FF0000">**必须填写</font> </td>
      </tr>
      <tr bgcolor="#ffffdd"> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          姓 名:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=32 name="name" size="30" value="<%=rs("name")%>">
          <font color="#FF0000">**必须填写</font> </td>
      </tr>
      <tr> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          开 户 行:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=200 name="bank" size="30" value="<%=rs("bank")%>">
          <font color="#FF0000">**必须填写</font> </td>
      </tr>
      <tr bgcolor="#ffffdd"> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <b><font face="Arial">Email</font></b>:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=64 name="email" value="<%=rs("email")%>" size="30">
          <font color="#FF0000">**必须填写</font> </td>
      </tr>
      <tr> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          昵 称:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=64 name="nickname" value="<%=rs("nickname")%>" size="30">
          <font color="#FF0000">**必须填写</font> </td>
      </tr>
      <tr> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
        <b><font face="Arial">E-Gold</font></b>帐号:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=10 name="egold" value="<%=rs("egold")%>" size="30">
          <font color="#FF0000">**必须填写</font> </td>
      </tr>
      <tr bgcolor="#ffffdd"> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
        <b><font face="Arial">QQ</font></b>:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=12 name="QQ" value="<%=rs("qq")%>" size="30">
          <font color="#FF0000">**必须填写</font></td>
      </tr>
      <tr> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC">通信地址:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=64 name="address" value="<%=rs("address")%>" size="30">
          <font color="#FF0000">**必须填写</font></td>
      </tr>
      <tr bgcolor="#ffffdd"> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC">邮政编码:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=6 name="postcard" value="<%=rs("postcard")%>" size="30">
          <font color="#FF0000">**必须填写</font></td>
      </tr>
      <tr> 
        <td align="right" width="28%" height="35" style="border-left: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          我的论坛:</td>
        <td width="72%" align="left" style="border-right: 1px solid #C9D8AD" bgcolor="#F6F6EC"> 
          <input type="text" maxlength=64 name="bbs" value="<%=rs("bbs")%>" size="30">
          <font color="#FF0000">**必须填写</font></td>
      </tr>
      <tr> 
        <td align="center" colspan="2" style="border-left:1px solid #C9D8AD; border-right:1px solid #C9D8AD; border-bottom:1px solid #C9D8AD; " bgcolor="#F6F6EC"> 
          <div align="center"> 
            <input type="submit" name="submit" width="34" height="20" alt="提交" size="20" value="  修改用户信息  " class="lkbtn">
              <br>
              <b><font color="#FF0000">(请会员站长把你的资料一一填好,不能有空,否则就会出错) </font></b> 
            </div>
        </td>
      </tr>
    </table>
      </center>
    </div>
</div>
</form>
</body>
</html>

⌨️ 快捷键说明

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