check.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:1k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <html>
  3. <head>
  4.   <title>认证码验证页面</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
  7. <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
  8. <META HTTP-EQUIV="Expires" CONTENT="0"> 
  9.   </head>
  10. <body>
  11. <% 
  12.    String rand = (String)session.getAttribute("rand");
  13.    String input = request.getParameter("rand");
  14. %>
  15.   系统产生的认证码为: <%= rand %><br>
  16.   您输入的认证码为: <%= input %><br>
  17. <br>
  18. <%
  19.   if (rand.equals(input)) {
  20. %>
  21.     <font color=green>输入相同,认证成功!</font>
  22. <%
  23.   } else {
  24. %>
  25.     <font color=red>输入不同,认证失败!</font>
  26. <%
  27.   }
  28. %>
  29.  </body>
  30. </html>