A. 誰有web登陸頁面的全部代碼
51aspx上一大錐
B. web掃碼登錄怎麼實現,思路是什麼
1.前端調用後台生成二維碼的API,獲取到二維碼圖片和所包含的信息(通常是一個唯一ID)
2.前端檢測(通過輪詢或者websock,自己選擇)是否有手機掃碼,通過調用後台介面API,參數為上面的唯一ID
3.手機掃描二維碼登陸,手機端可以獲取到二維碼里的信息ID,帶上當前登陸用戶ID和二維碼里的ID調用後台介面。
後台存儲這個二維碼的數據,加上登錄用戶信息,當前台調用API時,給返回登錄成功。
4.前端獲取到登錄成功,進行跳轉
C. 用web+sqlserver+jsp編寫登錄界面。要求有驗證
<%@ page language="java" import="java.util.*,java.sql.*" pageEncoding="utf-8"%>
<html>
<head>
<title>人事管理系統登錄界面</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
.STYLE3 {font-size: 24px}
-->
</style>
</head>
<%
String career=request.getParameter("career");
String usernum=request.getParameter("usernum");
String password=request.getParameter("password");
String sql="";
if(career=="管理員")
sql="select * from secret where eno='"+usernum+"' and sec='"+password+"'";
else
sql="select * from password where eno='"+usernum+"' and pwd='"+password+"'";
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Connection conn = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=J2EE", "sa", "123456");
PreparedStatement pstmt = conn.prepareStatement();
ResultSet rs = pstmt.executeQuery(sql);
if(career=="管理員"&&rs!=null)
request.sendRedirect("management.jsp");
else if(career=="普通用戶"&&rs!=null)
request.sendRedirect("common.jsp");
else
{
PrintWriter out = response.getWriter();
out.write("<script>alert('登陸失敗!')</script>");
request.sendRedirect("manager.jsp");
}
%>
D. 如何寫一個web登陸網頁
這個不是幾句話就能說出來的 ,需要做很多的配置文件處理,前端比較簡單的就不要說了,你要有php的伺服器和mySql資料庫,然後你得裝環境,讓你的php能運行起來,你需要用代碼配置介面,伺服器,如果沒有接觸過這個的話,估計很難成功