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

📄 password.jsp

📁 一个 网上答疑系统 与大家分享 jsp+sql
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=GB2312"%>

<%
    String getLoginmessage=(String)session.getValue("loginSign");
    if(getLoginmessage!="OK")
    {
       // response.sendRedirect("index.jsp");
    }	
%>
<HTML>
<HEAD>
<TITLE>密码修改</TITLE>

<script language=JavaScript>
function check(){

    if (form1.oldpwd.value=="")
    { 
       alert("请输入原密码!");
       form1.oldpwd.focus();
       return false; 
     }
    if (form1.newpwd.value=="")
    {
      alert("请输入新密码!");
      form1.newPassword.focus();
      return false;
     }
	 if (form1.newpwd2.value=="")
    {
      alert("请输入确认密码!");
      form1.newpwd2.focus();
      return false;
     }
	 if(form1.newpwd.value!=form1.newpwd2.value)
	 {
	   alert("新密码与确认密码不一致!");
	   return false;
	 }
     return true;
}
</Script>
<script language="JavaScript" type="text/JavaScript">
</script>
</HEAD>
<BODY>
<div align="center"></div> 
<div id="Layer1" style="position:absolute; width:669px; height:295px; z-index:1; left: 9px; top: 24px;">
<form name=form1 method="post" action="checkpwd.jsp" onsubmit="return check()">
  <table width="344" border="0" cellspacing="0" cellpadding="1" bgcolor="#000099" align="center">
    <tr> 
      <td width="342">
        <table width="100%" height="259" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCFFCC">
          <tr> 
            <td  align="center" colspan="2" height="30"><font color="#000099">密码修改</font></td>
          </tr>
          <tr> 
            <td height="17" >&nbsp;</td>
            <td bgcolor=>&nbsp;</td>
          </tr>

          <tr> 
            <td height="34" align="center" ><font color="#000099">原&nbsp;密&nbsp;码</font></td>
            <td align="center"> 
              <input name=oldpwd 
                  size=16 type=password>
            </td>
          </tr>
          <tr> 
            <td height="32" align="center" ><font color="#000099">新&nbsp;密&nbsp;码</font></td>
            <td align="center"> 
              <input name=newpwd
                  size=16 type=password>
            </td>
          </tr>
          <tr> 
            <td height="38" align="center" ><font color="#000099">确认密码</font></td>
            <td align="center"> 
              <input name=newpwd2 
                  size=16 type=password>
            </td>
          </tr>
          <tr> 
            <td height="34" colspan="2"><div align="center">
              <input type="submit" name="Submit" value="修改">
</div></td>
          </tr>
          <tr align="center"> 
            
          </tr>
          <tr> 
            <td height="2" colspan="2"></td>
          </tr>
        </table>
      </td>
  </tr>

</form>
</div>
</BODY>
</HTML>

⌨️ 快捷键说明

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