login.jsp~22~
来自「网上购书系统!jsp+servlet+jdbc实现!数据库sqlserver2」· JSP~22~ 代码 · 共 71 行
JSP~22~
71 行
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>login</title>
<script type="" language="javascript">
function usersubmit(){
var name = document.form1.uname.value;
var pass = document.form1.upassword.value;
if(name == ""){
alert("请输入用户名!");
return false;
}
if(pass == ""){
alert("请输入密码!");
return false;
}
}
</script></head>
<body bgcolor="#CCCCCC">
<table width="20" border="1" bgcolor="#999999" cellpadding="5" align="center">
<tr>
<td nowrap="nowrap">
<font size="6" face="宋体">
<b>欢迎使用网上购书系统</b>
</font>
</td>
</tr>
</table>
<p> </p>
<form name="form1" action="loginservlet" method="POST" onsubmit="return usersubmit();">
<table border="0" align="center" width="70">
<caption>会员登陆</caption>
<tr>
<td nowrap="nowrap">
<font face="宋体">用户:</font>
</td>
<td>
<input type="text" name="uname" value="" size="20"/>
</td>
</tr>
<tr>
<td nowrap="nowrap">
<font face="宋体">密码:</font>
</td>
<td>
<input type="password" name="upassword" value="" size="20"/>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" name="Submit" value="登陆"/>
</td>
</tr>
</table>
<center>
<p>
<a href="userRegister.html">
<font face="宋体">用户注册</font>
</a>
</p>
<br/>
<font face="宋体" color="red">
<i>
<b>如果没有注册请赶快注册吧</b>
</i>
</font>
</center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?