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

📄 changepwd.asp

📁 本系统基于WEB
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改用户密码|毕业设计选题系统</title>
<script language="jscript">
<!--
	function Check()
	{ 
		var NotNull
		NotNull=true
			if (document.form1.textfield1.value=="")
			{
				window.alert("请输入原密码")
				NotNull=false
			}
			if (document.form1.textfield2.value=="")  
			{
				window.alert("新密码不能为空")
				NotNull=false
			}
			if (document.form1.textfield3.value!=document.form1.textfield2.value)  
			{
				window.alert("两次输入密码不相符")
				NotNull=false
			}
			return NotNull
	}
//-->
</script>
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
</head>

<BODY leftMargin=0 topMargin=0 marginwidth="0">
  <!--#include file=../top.asp-->
  <!--#include file=top.asp-->
<div align="center"><td><table width="768" border="0" bgcolor="#FFFFFF"><tr><td><div align="left">
<%
Dim conn
Set conn=Server.CreateObject("ADODB.RecordSet")
conn.ActiveConnection = "DSN=hw;User ID=sa"
conn.Source = "select * from dbo.student where stu_id='"&session("student")&"'"
conn.CursorType = 0
conn.LockType = 1
conn.Open()
%>
<p>正在修改 <% Response.Write(conn("stu_name")) %> 的登录密码</p>
  <form id="form1" name="form1" method="post" action="changepwd2.asp" onSubmit="return Check()">
    <label>
    请输入原密码
      <input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="password" name="textfield1" />
    </label>
    <label><br />
    请输入新密码
      <input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="password" name="textfield2" />
    </label>
    <label><br />
    请确认新密码
      <input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" type="password" name="textfield3" />
    </label>
      <label> <br />
      <input type="submit" name="Submit" value="提交" />
      </label>
      <label>
      <input type="reset" name="Submit2" value="重置" />
      </label>
    </p>
  </form>
<%
conn.Close()
Set conn = Nothing
%>
</div></td></tr></table></td></div>
  <!--#include file=botton.asp-->
  <!--#include file=../botton.asp-->
</body>
</html>

⌨️ 快捷键说明

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