?? login.jsp
字號:
<%@ page contentType="text/html; charset=GBK" %>
<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>
<jsp:useBean id="l" scope="application" class="login.login"/>
<jsp:useBean id="m" scope="application" class="MD5.MD5"/>
<%
l.con=j.getConnection();
String user_name=new String(request.getParameter("user_name").getBytes("ISO8859_1"), "GBK");
String user_key=new String(request.getParameter("user_key").getBytes("ISO8859_1"), "GBK");
String user_key_c=new String(request.getParameter("user_key_c").getBytes("ISO8859_1"), "GBK");
user_key=m.getMD5ofStr(user_key);
l.user_name=user_name;
l.user_key=user_key;
if(l.login_exe())
{
out.print("注冊成功");
}
else
{
out.print("用戶名重復(fù)");
}
j.releaseConnection(l.con);
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -