国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

登錄注冊頁面連接數(shù)據(jù)庫并完成注冊(一)

這篇具有很好參考價值的文章主要介紹了登錄注冊頁面連接數(shù)據(jù)庫并完成注冊(一)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

1:我們先從html開始,注釋不多,希望諒解,下面是html頁面的代碼:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="jq/jquery-3.3.1.js"></script>
    <link href="css/login.css" rel="stylesheet">
    <script type="text/javascript" src="js/login.js"></script>
</head>
<body>
    <div id="pop" style="display: none">
        <div id="pop_ts">提示</div>
        <div id="pop_tz">注冊成功!</div>
        <div id="span" style="color: white" onclick="confirm()">確定</div>
    </div>
    <div id="header_top">
        <div id="login">
            <form id="form_1" class="box">
                <span class="logo_logo"><a href="header.jsp" class="a_logo">LOGO</a></span>
                <h1>登錄</h1>
                <div id="login_ww" style="color: yellow"></div>
                <input class="dc" id="username1" type="text" name="username" placeholder="用戶名">
                <input class="dc" id="password1" type="password" name="password" placeholder="密碼">
                <input type="submit" name="no" value="登錄" id="no">
                <p class="meassage">還未注冊?<a id="onclick_1" onclick="fun('no')"> 注冊</a></p>
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="yes" value="no" ><span class="checkboxmessage" style="font-size: 12px;">自動登錄</span>
                    </label>
                </div>
            </form>
        </div>
        <div id="register">
            <form id="form" name="form" class="box">
                <span class="logo_logo"><a href="header.jsp" class="a_logo">LOGO</a></span>
                <h1>注冊頁面</h1>
                <div id="errorMsg" style="color: yellow"></div>
                <input class="a" id="username_1" type="text" name="username" placeholder="用戶名英文" >
                <input class="a" id="password_1" type="password" name="password" placeholder="密碼:數(shù)字加英文">
                <input class="a" id="phone_1" type="phone" name="phone" placeholder="中國移動電話號碼11位">
                <input class="a" id="address_1" type="idcard" name="address" placeholder="地址如:四川省成都市武侯區(qū)">
                <input class="a" id="rgdate_1" type="rgdate" name="rgdate" placeholder="時間" style="display: none">
                <input type="submit" name="ok" id="ww" value="注冊">
                <p class="meassage">已有賬號?<a id="onclick_2" onclick="fun('yes')">登錄</a></p>
            </form>
        </div>
    </div>
</body>
</html>

2:下面是一個css代碼,可能比較亂:

body{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-image: url("../images/bg_01.png");
    background-size: cover;
}
a{
    cursor: pointer;
}
.box{
    width: 300px;
    padding: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #191919;
    opacity: 0.5;
    text-align: center;
}
.box h1{
    color: white;
    text-transform: uppercase;
    font-weight: 500;
}
.box input[type = "text"],.box input[type = "password"]{
    border:0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
}
.box input[type = "text"]:focus,.box input[type = "password"]:focus{
    width: 280px;
    border-color: #2ecc71;
}
.box input[type = "text"],.box input[type = "rgdate"]{
    border:0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
}
.box input[type = "text"]:focus,.box input[type = "rgdate"]:focus{
    width: 280px;
    border-color: #2ecc71;
}
.box input[type = "submit"]{
    border:0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #2ecc71;
    padding: 14px 40px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}
.box input[type = "submit"]:hover{
    background: #2ecc71;
}
.box .meassage{
    text-transform: uppercase;
    color:white;
}
.box .meassage a{
    color: aqua;
    text-decoration: none;
}
.checkboxmessage{
    color:white;
    font-size:18px;
}
.box input[type = "text"]:focus,.box input[type = "idcard"]:focus{
    width: 280px;
    border-color: #2ecc71;
}
.box input[type = "text"],.box input[type = "idcard"]{
    border:0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
}.box input[type = "text"]:focus,.box input[type = "phone"]:focus{
     width: 280px;
     border-color: #2ecc71;
 }
.box input[type = "text"],.box input[type = "phone"]{
    border:0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
}
.a_logo{
    cursor: pointer;
    color: rgb(189, 159, 170) ;
}
#register{
    display: none;
}
.logo_logo {
    width: 70px;
    height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
    text-align: center;
    display: inline;
    font-size: 20px;
    color: rgb(189, 159, 170) ;
    font-family: "Lucida Calligraphy";
}
#pop {
    width: 400px;
    height: 250px;
    top: 20%;
    left: 37%;
    position: absolute;
    background-color: white;
    z-index: 10;
}
#pop_ts{
    width: 400px;
    height: 100px;
    background-color: #191919;
    color: white;
    font-size: 35px;
    text-align: center;
    line-height: 100px;
}
#pop_tz{
    width: 400px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    margin-top: 40px;
}
#span {
    width: 100px;
    height: 40px;
    background-color: #3498db;
    text-align: center;
    line-height: 40px;
    margin: 20px auto;
    cursor: pointer;
}

3:然后我們看看樣式是什么樣子吧:

登錄注冊頁面連接數(shù)據(jù)庫并完成注冊(一)

登錄注冊頁面連接數(shù)據(jù)庫并完成注冊(一)

?4:因為登錄注冊是在一個頁面上面顯示的,點擊登錄會把登錄這個div頁面隱藏,然后顯示注冊的div頁面.利用的是點擊事件;剩下的請看第二章哦!!!

?登錄注冊頁面連接數(shù)據(jù)庫并完成注冊(一)文章來源地址http://www.zghlxwxcb.cn/news/detail-507856.html

到了這里,關(guān)于登錄注冊頁面連接數(shù)據(jù)庫并完成注冊(一)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Flutter框架實現(xiàn)登錄注冊功能,不連接數(shù)據(jù)庫

    要在Flutter框架中實現(xiàn)登錄和注冊功能,而不連接數(shù)據(jù)庫,可以使用本地存儲來存儲用戶信息。以下是一個簡單的示例,演示如何使用本地存儲來實現(xiàn)登錄和注冊功能。 首先,我們需要添加 shared_preferences 插件到 pubspec.yaml 文件中: 然后,在 lib 文件夾中創(chuàng)建一個新的文件夾

    2024年02月08日
    瀏覽(25)
  • MVC框架實現(xiàn)用戶登錄注冊功能(連接數(shù)據(jù)庫)

    MVC框架實現(xiàn)用戶登錄注冊功能(連接數(shù)據(jù)庫)

    一、簡單理解MVC框架 二、項目結(jié)構(gòu) 三、項目源碼 3.1 User 3.2?UserDao 3.3?RegisterDao 3.4?servletControll 3.5 servletControllRegister 3.6?web.xml 3.7?login.jsp 3.8?register.jsp 3.9?success.jsp 3.10?failure.jsp ?四、實現(xiàn)效果 總結(jié) 本篇文章主要介紹利用MVC框架去實現(xiàn)一個簡單的用戶登錄注冊功能,內(nèi)容主

    2024年02月06日
    瀏覽(38)
  • JavaWeb實現(xiàn)簡易的注冊登錄功能(與數(shù)據(jù)庫連接)

    JavaWeb實現(xiàn)簡易的注冊登錄功能(與數(shù)據(jù)庫連接)

    一、創(chuàng)建數(shù)據(jù)庫表連接 這里我們創(chuàng)建一個數(shù)據(jù)庫名為db_user,創(chuàng)建庫的使用可視化工具很簡單就不細說了,下面sql代碼塊是我們創(chuàng)建一個簡易用戶表為了方便我們后續(xù)進行登錄注冊操作。 下面就是建好的表: 1、建一個與數(shù)據(jù)庫連接的file文件:db.properties 二、創(chuàng)建前端頁面 1、

    2024年01月19日
    瀏覽(23)
  • 前端注冊登錄頁面數(shù)據(jù)庫交互(h5+css+php+mysql+axios)

    前端注冊登錄頁面數(shù)據(jù)庫交互(h5+css+php+mysql+axios)

    一個登錄注冊界面,并使用前端數(shù)據(jù)庫實現(xiàn)登陸注冊功能? 首先是index.html 直接在index.html里面寫了用axios,實現(xiàn)注冊和登錄 效果圖 登錄注冊滑動實現(xiàn) script.js style.css 然后是登錄和注冊的php login.php register.php

    2024年02月11日
    瀏覽(19)
  • java連接數(shù)據(jù)庫實現(xiàn)登錄與注冊小功能(小白版)

    java連接數(shù)據(jù)庫實現(xiàn)登錄與注冊小功能(小白版)

    準備工作: 創(chuàng)建數(shù)據(jù)庫stu;? ? ? ? create database stu charset=utf8; 使用數(shù)據(jù)庫stu;? ? ? ? ? ? use stu; 創(chuàng)建用戶表user(id,username,password,nick) create table user(id int primary key auto_increment,username varchar(50),password varchar(50),nick varchar(50)); ? 1.開始創(chuàng)建springboot工程,勾選Web-spring Web,? SQL-MyBatis Frame

    2024年02月08日
    瀏覽(18)
  • Java--用戶登錄/注冊界面(連接Mysql數(shù)據(jù)庫)并可以通過驗證碼登錄

    Java--用戶登錄/注冊界面(連接Mysql數(shù)據(jù)庫)并可以通過驗證碼登錄

    1 效果展示 (1)登錄界面 (2)注冊界面 (3)動圖展示 2 內(nèi)容說明 (1)開發(fā)前,需引入一個連接Mysql 數(shù)據(jù)庫驅(qū)動mysql-connector-java-5.1.30-bin.jar包 提取碼:6666 (2)構(gòu)建路徑 (3)需要下載xampp軟件 xampp軟件下載 提取碼:2255 xampp軟件包含 Apache Web服務(wù)器、 Mysql Web服務(wù)器、Filezilla

    2024年02月09日
    瀏覽(95)
  • Java實現(xiàn)連接數(shù)據(jù)庫驗證登錄和注冊(附詳細知識點講解)

    Java實現(xiàn)連接數(shù)據(jù)庫驗證登錄和注冊(附詳細知識點講解)

    學完Java基礎(chǔ)后,一般會做個項目練手(上一篇博客有講到 Java在線聊天室課程設(shè)計 ) 當中肯定會涉及到 登錄驗證 ,但沒學過數(shù)據(jù)庫 ??,不知道如何操作;只能把用戶賬戶密碼預存在一個txt文本當中,然后通過IO流讀取驗證 ? 最后去搜相應(yīng)的資料和網(wǎng)課進行學習,現(xiàn)在問題

    2024年02月02日
    瀏覽(19)
  • 微信小程序登錄與注冊(沒有連接數(shù)據(jù)庫)(2023年3月31日)

    微信小程序登錄與注冊(沒有連接數(shù)據(jù)庫)(2023年3月31日)

    提示:以下是本篇文章正文內(nèi)容,下面案例可供參考 在登錄表單里,輸入賬號、密碼進行登錄,在賬號、密碼輸入框里都有友好的提示信息;登錄按鈕 默認是灰色不可用狀態(tài),只有輸入內(nèi)容后,才會變?yōu)榭捎脿顟B(tài);在登錄按鈕的下面提供手機快速注 冊、企業(yè)用戶注冊、找回

    2024年02月08日
    瀏覽(23)
  • arkTS開發(fā)鴻蒙OS應(yīng)用(登錄頁面實現(xiàn),連接數(shù)據(jù)庫)

    arkTS開發(fā)鴻蒙OS應(yīng)用(登錄頁面實現(xiàn),連接數(shù)據(jù)庫)

    喜歡的朋友可在抖音、小紅書、微信公眾號、嗶哩嗶哩搜索“淼學派對”。知乎搜索“編程淼”。

    2024年03月24日
    瀏覽(25)
  • 使用javaweb實現(xiàn)登錄注冊頁面,并且對功能和業(yè)務(wù)進行分層 用戶登錄成功跳轉(zhuǎn)到主頁并展示數(shù)據(jù)庫的商品的信息

    使用javaweb實現(xiàn)登錄注冊頁面,并且對功能和業(yè)務(wù)進行分層 用戶登錄成功跳轉(zhuǎn)到主頁并展示數(shù)據(jù)庫的商品的信息

    一、Servlet+JSP+JavaBean開發(fā)模式(MVC)介紹 Servlet+JSP+JavaBean模式(MVC)適合開發(fā)復雜的web應(yīng)用,在這種模式下,servlet負責處理用戶請求,jsp負責數(shù)據(jù)顯示,javabean負責封裝數(shù)據(jù)。 Servlet+JSP+JavaBean模式程序各個模塊之間層次清晰,web開發(fā)推薦采用此種模式。 這里以一個最常用的用戶登錄

    2024年02月03日
    瀏覽(109)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包