action

发布时间:2023-03-30 06:29:20   来源:文档文库   
字号:

<%@pagelanguage="java"contentType="text/html;charset=GBK"pageEncoding="GBK"%>
DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head>
<metahttp-equiv="Content-Type"content="text/html;charset=GBK"><title>用户登录页面title>
<scripttype="text/javascript">functioncheckLogin({varuserName=document.getElementById("userName".value;varpassword=document.getElementById("password".value;//alert("用户名为>:"+userName+"密码为>:"+password;if(!userName{}
if(!password{}
document.forms[0].submit(;}script>head><body><br><br><br><br><center>

<formaction="./login"id="loginForm"name="loginForm"method="get"><tablewidth="50%"border="1"cellpadding="0"cellspacing="1"><trbgcolor="#efe284">
alert("密码不能为空!";document.getElementById("password".focus(;alert("用户名不能为空!";document.getElementById("userName".focus(;returnfalse;returnfalse;<tdcolspan="2"><h2>用户登录页面h2>td>tr>

<tr>

<tdalign="right"bgcolor="#efe284">登录名:td><tdalign="left"><inputtype="text"id="userName"



name="userName"/>td>

tr><tr>

<tdalign="right"bgcolor="#efe284"> 码:td><tdalign="left"><inputtype="password"id="password"
name="password"/>td>
tr><tr>

<tdcolspan="2"bgcolor="#efe284"align="center">
<buttontype="button"onclick="checkLogin(;">登录button>td>
tr>
<trbgcolor="#efe284">
<tdcolspan="2"
bgcolor="red"><%=request.getAttribute("error"%>td>tr>

table>form>
center>body>html>


本文来源:https://www.2haoxitong.net/k/doc/704bb2d5240c844769eaee30.html

《action.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式