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

📄 modify.asp

📁 自做的购物网站
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="css.asp"--><%
if session("user_name")="" then
    response.write "<BR>"
    response.write "1.你尚未登录!请登录后再修改个人信息!"
    response.write "<br>2.第一次来本站,请先注册会员(免费)!"
	response.write "<BR>"
else
user_name=session("user_name")
%>



<%
set rs=server.createobject("adodb.recordset")
sql="select * from member where user_name='"&user_name&"'"
rs.open sql,conn,3,3
%>
<body topmargin="0">
<form method="POST" action="modifysave.asp?user_name=<%=rs("user_name")%>">
  <br>
  <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="100%"><TABLE style="BORDER-COLLAPSE: collapse" borderColor=#525e6b cellSpacing=0 
      cellPadding=0 width="100%" align=center border=1>
          <TBODY>
            <TR> 
              <TD width="100%"> <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 
            cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD vAlign=top width=300> <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 
                  cellSpacing=0 cellPadding=0 width="100%" 
                  background="images/pics2/infobg.gif" 
                  border=0>
                          <TBODY>
                            <TR> 
                              <TD width=45><IMG height=32 
                        src="images/pics2/icon.gif" 
                        width=40 border=0></TD>
                              <TD vAlign=middle><font color="#FFFFFF">用户资料修改</font></TD>
                              <TD width=43> <P align=right><IMG height=32 
                        src="images/pics2/edge(1).gif" 
                        width=43 border=0></P></TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                      <TD align=right 
                background="images/pics2/rightbg.gif"> <IMG 
                  alt=- 
                  src="images/pics2/space1.gif" width="3" height="32"></TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
            <TR> 
              <TD width="100%"> <TABLE id=AutoNumber6 style="BORDER-COLLAPSE: collapse" 
            borderColor=#111111 cellSpacing=0 cellPadding=2 width="100%" 
            border=0>
                  <TBODY>
                    <TR> 
                      <TD width="100%"><br> <table width="90%" border="0" align="center" cellspacing="1" background="IMAGES/pics2/infobg.gif">
                          <tr> 
                            <td width="21%" height="25"><div align="right"><font color="#FFFFFF">用户名:</font></div></td>
                            <td width="79%" height="25"><div align="left"><font color="#FFFFFF"><%=rs("user_name")%> 
                                此项不可更改</font></div></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td width="21%" height="25"><div align="right">密码:</div></td>
                            <td width="79%" height="25">  
                              <input style="FONT-SIZE: 12px; WIDTH: 160px" type="text" name="user_pass" size="36" class=input value="<%=rs("user_pass")%>"></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td width="21%" height="25"><div align="right">E-mail:</div></td>
                            <td width="79%" height="25">  
                              <input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="user_mail" size="36" class=input value="<%=rs("user_mail")%>"></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td width="21%" height="25"><div align="right">电话:</div></td>
                            <td width="79%" height="25">  
                              <input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="user_tel" size="36" class=input value="<%=rs("user_tel")%>"></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td width="21%" height="25"><div align="right">邮政编码:</div></td>
                            <td width="79%" height="25">  
                              <input style="FONT-SIZE: 12px; WIDTH: 110px" type="text" name="user_postcode" size="36" class=input value="<%=rs("user_postcode")%>"></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td width="21%" height="25"><div align="right">地址:</div></td>
                            <td width="79%" height="25">  
                              <input style="FONT-SIZE: 12px; WIDTH: 230px" type="text" name="user_adds" size="32" class=input value="<%=rs("user_adds")%>"></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td width="21%" height="25"><div align="right">真实姓名:</div></td>
                            <td width="79%" height="25">  
                              <input style="FONT-SIZE: 12px; WIDTH: 110px" type="text" name="user_namec" size="36" class=input value="<%=rs("user_namec")%>"></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <%rs.close%>
                            <td height="35" colspan="2"> <table width="40%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td><div align="center"> 
                                      <input 
      align=absMiddle alt=确认 cache name="B1" 
      src="IMAGES/pics2/s_button000.gif" type=image tppabs="" width="45" height="20">
                                    </div>
                                    <div align="center"> </div></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table>
                        <br> </TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
            <TR> 
              <TD width="100%" height="20" bgColor=#3e3e4b>&nbsp; </TD>
            </TR>
          </TBODY>
        </TABLE> </td>
  </tr>
</table>
  </form>

<%end if%>
<%
set rs=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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