liao.asp

来自「ASP开发学生成绩查询管理系统,能满足毕业设计的要求-ASP student a」· ASP 代码 · 共 70 行

ASP
70
字号

<!--#include file="include/conn.asp"-->
<!--#include file="include/check.asp"-->

<html>
<head>
<link rel="stylesheet" href="inc/css.css" type="text/css" />
</head>
<body>
<form name="form1" method="post" action="">
  <table width="550" border=0 align=center cellpadding=2 cellspacing=1 bordercolor="#799AE1" class=tableBorder>
    <tbody>
      <tr>
        <th align=center colspan=2 style="height: 23px">
		  <div align="center">
		    <% =session("admin")
		 %>
		 
		 基本信息</div></th>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td colspan="2" align="center" class=txlrow>&nbsp;</td>
      </tr>
      <tr align="center" bgcolor="#799AE1">
        <td height="30" align="center" bgcolor="#799AE1" ></td>
        <td height="30" align="center" bgcolor="#799AE1" ></td>
      </tr>
      <tr align="center" bgcolor="#799AE1">
        <td width="50%"  align="center" bgcolor="#799AE1" >&nbsp;</td>
        <td width="50%"  align="center" bgcolor="#799AE1" >&nbsp;</td>
      </tr>
      
      

      <tr bgcolor="#DEE5FA">
        <td align="center" bgcolor="#DEE5FA" class="txlrow"></td>
        <td align="center" valign="top" bgcolor="#DEE5FA" class="txlrow">
          <div align="left">
            <input type="submit" name="Submit" value="修改">
            <input type="reset" name="Submit2" value="重置">
            </div>
        </td>
      </tr>
    
      <tr bgcolor="#DEE5FA">
        <td colspan=2 align=center class=txlrow></td>
      </tr>
</tbody></table>
</FORM>

<%
dim sql,usename,paw
  
	paw=request.form("txtpaw")
if request.form("submit")="修改" then

	sql="select * from user where usename='"&session("admin")&"'"
	rs.open sql,conn,3,3
	
	rs("password")=paw
	rs.update
	response.write "<script> alert('修改成功!');</script>"
	rs.close
	set rs=nothing

   end if
%>

</BODY>
  </HTML>

⌨️ 快捷键说明

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