国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP development login registration complete code login HTML page

login.html

##We have made JS judgment on our <form> form content on this page

Made a css layout for the <form> form

and put it into our yanzhengma.php, verification code file

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陸界面</title>
    <script type="text/javascript">
    function foo(){
            if(myform.name.value=="")
            {
                alert("請(qǐng)輸入用戶名");
                myform.name.focus();
                return false;
            }
            if (myform.pwd.value=="")
            {
                alert("請(qǐng)輸入密碼");
                myform.pwd.focus();
                return false;
            }
            if (myform.yzm.value=="")
            {
                alert("請(qǐng)輸入驗(yàn)證碼");
                myform.yzm.focus();
                return false;
            }
        }
    </script>
    <style type="text/css">
           body{background-image: url("/images/1.jpg")}
           .container{
               width: 380px;
               height: 330px;
               margin: 0 auto;margin-top: 240px;
               box-shadow: 0 0 20px #222;
               border-radius:40px;
              background-color: rgba(152, 242, 242, 0.23);
           }
        div.right{
            position: relative;
            left: 40px;
            top: 20px;
        }
         input{
             width: 180px;
             height: 25px;
         }
        button{
            background-color: rgba(230, 228, 236, 0.93); /* Green */
 border: none;
            color: #110c0f;
            padding: 10px 30px;
            text-align: center;
            display: inline-block;
            font-size: 16px;
            margin-top: -40px;
            margin-left: 50px;
            cursor: pointer;
        }
    </style>
</head>
<body>
<form action="login.php" method="post" onsubmit="return foo();" name="myform" >
 <div class="container"style="font-size:17px">
     <div class="right">
    <h2>用戶登陸</h2>
     <p>
         用戶名:<input type="text" name="username" id="name" placeholder="請(qǐng)輸入用戶名">
     </p>
     <p>
         密&#12288碼:<input type="password" name="password" id="pwd" placeholder="請(qǐng)輸入密碼" >
     </p>
     <p>
         驗(yàn)證碼:<input type="text" name="yzm" id="yzm" placeholder="請(qǐng)輸入驗(yàn)證碼">
         <img src="yanzhengma.php" onClick="this.src='yanzhengma.php?nocache='+Math.random()" style="cursor:hand">
     </p>
         <p style=" margin-left: 200px"><a href="reg.html">注冊(cè)</a></p>
       <p>
             <button class="button">立即登陸</button>
       </p>
   </div>
 </div>
</form>
</body>
</html>


Continuing Learning
||
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>登陸界面</title> <script type="text/javascript"> function foo(){ if(myform.name.value=="") { alert("請(qǐng)輸入用戶名"); myform.name.focus(); return false; } if (myform.pwd.value=="") { alert("請(qǐng)輸入密碼"); myform.pwd.focus(); return false; } if (myform.yzm.value=="") { alert("請(qǐng)輸入驗(yàn)證碼"); myform.yzm.focus(); return false; } } </script> <style type="text/css"> body{background-image: url("/images/1.jpg")} .container{ width: 380px; height: 330px; margin: 0 auto;margin-top: 240px; box-shadow: 0 0 20px #222; border-radius:40px; background-color: rgba(152, 242, 242, 0.23); } div.right{ position: relative; left: 40px; top: 20px; } input{ width: 180px; height: 25px; } button{ background-color: rgba(230, 228, 236, 0.93); /* Green */ border: none; color: #110c0f; padding: 10px 30px; text-align: center; display: inline-block; font-size: 16px; margin-top: -40px; margin-left: 50px; cursor: pointer; } </style> </head> <body> <form action="login.php" method="post" onsubmit="return foo();" name="myform" > <div class="container"style="font-size:17px"> <div class="right"> <h2>用戶登陸</h2> <p> 用戶名:<input type="text" name="username" id="name" placeholder="請(qǐng)輸入用戶名"> </p> <p> 密&#12288碼:<input type="password" name="password" id="pwd" placeholder="請(qǐng)輸入密碼" > </p> <p> 驗(yàn)證碼:<input type="text" name="yzm" id="yzm" placeholder="請(qǐng)輸入驗(yàn)證碼"> <img src="yanzhengma.php" onClick="this.src='yanzhengma.php?nocache='+Math.random()" style="cursor:hand"> </p> <p style=" margin-left: 200px"><a href="reg.html">注冊(cè)</a></p> <p> <button class="button">立即登陸</button> </p> </div> </div> </form> </body> </html>
submitReset Code