简单做了界面,代码功能应该没有问题,简单做个文档分享一下。
登录界面
:
<%***@page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>登录界面</title>
<script>
function check()
{
if(=="")
{
alert("用户名不能为空");
();
return false;
}
if(=="")
{
alert("密码不能为空");
();
return false;
}
();
return true;
}
</script>
</head>
<body>
<center>
<font size="6"> 欢迎进入登录界面 </font>
<form action="" onsubmit="return check()" method="post" name="dlForm">
<p>用户名:<input type="text" name="UserN" style="width: 148px; "/></p>
<p>密 码:<input type="password" name="UserP" style="width: 146px; "/></p>
<p><input type="submit" value=" 登 录 " style="height: 43px; "/> <input type="button" value="忘记密码" onclick="('')" style="height: 43px; "/> <input type="button" value="返回主页" onclick="('')" style="height: 43px; "/></p></FORM>
</center>
</body>
</html>
<%***@page contentType="text/html;charset=gb2312" %>
<%***@page language="java" import="
webjsp简单的登录 注册页面代码 来自淘豆网www.taodocs.com转载请标明出处.