好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

登录页面_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.pwd.value=="")
{
alert("登录密码不能为空") ;
f.pwd.focus() ;
return false;
}
if(f.Code.value=="")
{
alert("验证码不能为空") ;
f.Code.focus() ;
return false;
}
return true ;
}






超级管理员登录



if(request.getParameter("submit")!=null){
//先拿到验证码本身图片上的真实4个数字
String rcode = (String)session.getAttribute("rand");
//获取用户输入的验证码
String code = request.getParameter("code");
//判断用户输入的是否正确
if(rcode.equals(code)){
%>
验证码正确!!
}else{
%>
验证码不正确!!
}

}
%>


查看更多关于登录页面_html/css_WEB-ITnose的详细内容...

  阅读:39次