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

📄 logonfail.jsp

📁 如题ServletJSP.rar 为网络收集的JSP网站源文件
💻 JSP
字号:
<%--
* signin.jsp 1.0  March 23, 2002
*
* Copywright (c) 2002-2003 RedSoft Group. All Rights Reserved
*
--%>
<%--
* signin.jsp display the page for user to signin
*
*
* @author	Peng, Luo
* @version	1.0
*
--%>
<%@page contentType = "text/html; charset=GB2312" %>

<HTML>

<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=GB2312">
<TITLE> XP Forum LOGIN </TITLE>
<STYLE TYPE="text/css">
body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px}
</STYLE>
</HEAD>

<BODY marginwidth="0" marginheight="0">

<CENTER>
<br>
<font color="red">
User does not exist<br>
</font>

<br>

<FORM METHOD="post" name="LogonForm" ACTION="/forum/logon.go">

<TABLE border="0">
<tr>
<td width="50%">Enter your username:</td>
<td width="50%"><input type="text" name="userName" value="" size="15" maxlength="15"></td>
</tr>
<tr>
<td width="50%">Type in your password:</td>
<td width="50%"><input type="password" name="password" value="" size="15" maxlength="15"></td>
</tr>
</TABLE>

<input type="button" value="Login" ONCLICK="checkUserMsg();">&nbsp&nbsp<input type="reset">
</form>

<br><br>
If you do not have an account with ChinaXPer.org, then <a href="/forum/register.jsp">Signup Here</a>.

</CENTER>
</BODY>    

<SCRIPT LANGUAGE="JAVASCRIPT">
function checkUserMsg()
{
  var userName = document.forms[0].userName.value;
  var password = document.forms[0].password.value;
  
  userName = trim(userName);
    
  if (userName.length == 0)
    return false;
  
  if (password.length < 5) {
    alert("length of password must >=5!");
    return false;
  }
  
  document.forms[0].userName.value = userName;
  document.LogonForm.submit();  
    
}

function ltrim(str) {
  while (str.indexOf(" ")==0) {
    if (str.length > 1)
      str = str.substring(1, str.length);
    else {
      str = "";
      break;
    }
  }
  
  return str;
}

function rtrim(str) {
  while (str.lastIndexOf(" ") == str.length-1) {
    if (str.length > 1)
      str = str.substring(0, str.length-2);
    else {
      str = "";
      break;
    }
  }
  return str;
}

function trim(str) {
  str = ltrim(str);
  return rtrim(str);
}

</SCRIPT>

</HTML>

⌨️ 快捷键说明

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