1、一个后台登录页面上显示验证码的功能,给一个完整的代码
<span style="font-size: medium;"><span style="font-size: large;"><%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="ctx"/>
<html>
<head>
<title</title>
</head>
<script type="text/javascript">
</script>
<body>验证码示例<hr/>
<table border="1" bordercolor="blue">
<tr>
<td>用户名</td><td><input type="text" /></td>
</tr>
<tr>
<td>密码</td><td><input type="text" /></td>
</tr>
<tr>
<td>验证码1</td><td><input id="checkcode" type="text" /><img src='${ctx}/checkcode.do?method=method1' style='cursor:pointer;' alt='请输入图片验证码' onClick="this.src='${ctx}/checkcode.do?method=method1&'+ Math.random()"> </td>
</tr>
<tr>
<td>验证码2</td><td><input id="checkcode" type="text" /><img src='${ctx}/checkcode.do?method=method2' style='cursor:pointer;' alt='请输入图片验证码' onClick="this.src='${ctx}/checkcode.do?method=method2&'+ Math.random()"> </td>
</tr>
<tr>
<td>验证码3</td><td><input id="checkcode" type="text" /><img src='${ctx}/checkcode.do?method=method3' style='cursor:pointer;' alt='请输入图片验证码' onClick="this.src='${ctx}/checkcode.do?method=method3&'+ Math.random()"> </td>
</tr>
<tr>
<td>验证码4</td><td><input id="checkcode" type="text" /><img src='${ctx}/checkcode.do?method=method4' style='cursor:pointer;' alt='请输入图片验证码' onClick="this.src='${ctx}/checkcode.do?method=method4&'+ Math.random()"> </td>
</tr>
<tr>
<td>验证码5</td><td><input id="checkcode" type="text" /><img src='${ctx}/checkcode.do?method=method5' style='cursor:pointer;' alt='请输入图片验证码' onClick="this.src='${ctx}/checkcode.do?method=method5&'+ Math.random()"> </td>
</tr>
<tr>
<td>验证码6</td><td><input id="checkcode" type="text" /><img src='${ctx}/checkcode.do?method=method6' style='cursor:pointer;' alt='请输入图片验证码' onClick="this.src='${ctx}/checkcode.do?method=method6&'+ Math.random()"> </td>
</tr>
<tr>
<td colspan="2"><a href="javascript:val();">验证输入</a></td>
</tr>
</table>
</body>
</html>
</span></span>
2、如何在网页中做验证码?
生成验证码是为了在访问数据库之前做一个验证,减少数据库压力,防止恶意攻击。目前流行的有2中方法:
1.利用script 生成图片
2.利用随机函数生成随机数,然后在比较输入框中的与几位随机数是否相同。
如果初学者,建议使用方法二,简单,容易上手。
另外,拿到别人的代码不要copy,要明白每句代码做了什么,方能提高!
3、网页制作 验证码怎么弄
你是想要他的验证码的还是他那个不输入验证码的效果 还是 详细一点呵 你为这个网页加一个层 就是现在流行的弹出层 不知道你理会我的意思了没
4、网站后台验证码显示不出来
1、编辑打开根目录下的dede\login.php文件,dede是后台目录,如果你重命名了后台目录,就进入你改名后的目录编辑打开login.php文件。
2、查找 if($validate=='' || $validate != $svali) 替换为 if( false )
织梦内容管理系统
3、编辑打开后台登陆模板文件dede/templets/login.htm,删除或注释以下验证码的具体HTML代码:
进入后台后进入后台:系统 -> 系统设置 -> 验证安全设置。在取消验证,然后把login.htm恢复就可以了
这个是取消的方法,希望对你有用,求满意
5、我想做一个简单的验证页面(html的)验证码(不止一个)都在页面内。
你这个想法是行不通的,【上面提到的验证码用户是看不见的。(相当于密码)】既然是html,那么所有的代码都是可见的,密码在用户查看源代码时,会全部可见,那你的密码就没有意义了。这个只能用动态语言去实现。如asp\php\jsp等。
但是当你懂这语言的时候,你这个功能又是最简单的功能,想你也不屑发问了。
6、网页后台管理验证码的问题...
if request("action")="adminlogin" then
if request("CheckCode")<>Session("CheckCode") then
Response.Write("<script language=javascript>alert('请输入正确的认证码!');this.location.href='admin.asp';</script>")
session("adminlogin")=""
Response.End
end if
把这段条件语句给删了
7、html网页设计:一个简单的登录界面代码!
是这样的效果吗?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>3</title>
<script>
function r()
{
var username=document.getElementById("username");
var pass=document.getElementById("password");
if(username.value=="")
{
alert("请输入用户名");
username.focus();
return;
}
if(pass.value=="")
{
alert("请输入密码");
return;
}
return true;
}
</script>
</head>
<body>
<form>
<table width="350" bgcolor="#ccffcc" style="border-color" border="1">
<tr align=center>
<td>用户名</td><td><input type="text" name="username" id="username"></td>
</tr>
<tr align=center><td>密 码</td><td><input type="password" name="password" id="password"></td></tr>
<tr align=center><td>验证码</td><td><input type="text" name="yanzheng"></td></tr>
<tr align=center><td colspan="2"><input type="button" value="登 录" onclick="r();"/> <input type="reset" value="重 置"/></td></tr>
</table>
</form>
</body>
</html>
8、后台验证码怎么查找
这个问题我以前也遇到过,一般情况下你输入帐户名和密码之后会出现一个验证码输入框。如果用户帐号、密码和验证码输入没错的话一般都可以进入到网站的后台。注:我上次的问题是后台的验证码设置是四位而在验证码输入框显示的却只有两位,所以没法进入网站后台。最后是通过FTP解决的。你的情况目前我还不是很清楚,这个得把具体的情况说出来才好有征对性的解决。如果还有其它不懂的可以HI我。(记得给分啊)
9、怎么查找网站后台验证码
其实是验证码没有刷新出来 稍等片刻或者刷新页面 如果还看不到那就是网站程序的问题 稍后再试 或者联系网络管理员!
10、如何在后台验证码判断
网站后台的验证码就无法显示,好像接着md5.asp也就消失了!怎么也上传不上去if cstr(session("getcode"))<>cstr(trim(request("verifycode"))) then