登录页面_html/css
来源:动视网
责编:小采
时间:2020-11-27 15:59:49
登录页面_html/css
登录页面_html/css_WEB-ITnose: 登录 function imgChange(){ f.img.src = image.jsp ; //alert(f.img.src) ; } function check(){ if(f.name.value==) { alert(登录名称不能为空) ; f.name.focus() ; return false ; } if(f.pw
导读登录页面_html/css_WEB-ITnose: 登录 function imgChange(){ f.img.src = image.jsp ; //alert(f.img.src) ; } function check(){ if(f.name.value==) { alert(登录名称不能为空) ; f.name.focus() ; return false ; } if(f.pw

<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
登录 function imgChange(){
f.img.src = "image.jsp" ;
//alert(f.img.src) ;
}
function check(){
if(f.name.value=="")
{
alert("登录名称不能为空") ;
f.name.focus() ;
return false ;
}
if(f.pwd.value=="")
{
alert("登录密码不能为空") ;
f.pwd.focus() ;
return false;
}
if(f.Code.value=="")
{
alert("验证码不能为空") ;
f.Code.focus() ;
return false;
}
return true ;
}
script>
超级管理员登录
<%
if(request.getParameter("submit")!=null){
//先拿到验证码本身图片上的真实4个数字
String rcode = (String)session.getAttribute("rand");
//获取用户输入的验证码
String code = request.getParameter("code");
//判断用户输入的是否正确
if(rcode.equals(code)){
%>
验证码正确!!
<%
}else{
%>
验证码不正确!!
<%
}
}
%>
登录页面_html/css
登录页面_html/css_WEB-ITnose: 登录 function imgChange(){ f.img.src = image.jsp ; //alert(f.img.src) ; } function check(){ if(f.name.value==) { alert(登录名称不能为空) ; f.name.focus() ; return false ; } if(f.pw