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

📄 login.jsp~23~

📁 新闻管理系统
💻 JSP~23~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
login
</title>
</head>
<body bgcolor="#ffffff">
<script type="" language="javaScript">
function chk()
{
    if(document.form1.txtId.value=="")
    {
      alert("用户名不能为空");
      document.form1.txtId.value="";
      document.form1.txtPwd.value="";
      document.form1.txtId.focus();
      return false;
    }
     if(document.form1.txtPwd.value=="")
    {
      alert("用户密码不能为空");
      document.form1.txtId.value="";
      document.form1.txtPwd.value="";
      document.form1.txtId.focus();
      return false;
    }
    return true;
}

</script>
<form method="post" action="logincheck.jsp" name="form1">
<table border="4" bgcolor="red">
<%
  String mess=(String)request.getAttribute("Message");
  if(mess==null)
  {
    out.print("欢迎登录");
  }
  else
  {
    out.print(mess);
  }
%>
<tr>
<td>用户名:</td><td><input type="text" name="txtId" /></td>
</tr>
<tr>
<td>密码:</td><td><input type="text" name="txtPwd"></td>
</tr>
<tr>
  <td>请输入验证码:</td>
 <td><input type="text" name="yanzhenma" maxlength="12"></td>
 </tr>
 <tr>
   <td colspan="2" align="center"><img alt="yanzhengma" src="image.jsp" border="0" /></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="提交" onclick="chk();">
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
<input type="reset" value="重置">
</td>
</tr>
</table>
</form>

</body>
</html>

⌨️ 快捷键说明

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