findstep_1.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:1k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <jsp:useBean id="findstep" class="MyFly.Bean.findstep" scope="request"/>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>无标题文档</title>
- </head>
- <%!
- String fun(String str)
- {
- try
- {
- return new String(str.getBytes("ISO8859_1"));
- }
- catch(Exception e)
- {
- return "";
- }
- }
- %>
- <%
- String name=(String)request.getParameter("userid");
- String rand = (String)session.getAttribute("rand");
- String yzm = request.getParameter("yzm");
- if (rand.equals(yzm))
- {
- if(findstep.getUsername(name)==1&&findstep.getUserfind(name)==1)
- {
- session.setAttribute("username",name);
- response.sendRedirect("findstep2.jsp");
- }
- else{
- out.println("<Script language=JavaScript>alert('您输入的用户名有误或您就没设置密码答案');javascript:history.back();</Script>");
- }
- }
- else
- {
- out.println("<Script language=JavaScript>alert('您的验证码出错了');javascript:history.back();</Script>");
- }
- %>
- <body>
- </body>
- </html>