亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

PHP開發(fā)用戶注冊(cè)模塊之HTML頁面

zc.png

以下是一個(gè)帶驗(yàn)證碼的HTML+CSS注冊(cè)頁面。

命名為zhuce.html

<!DOCTYPE html>
<html>
<head>
    <title>用戶注冊(cè)頁面</title>
    <meta charset="UTF-8"/>
    <style type="text/css">
        *{margin:0px;padding:0px;}
        ul{
            width:400px;
            list-style:none;
            margin:50px auto;
        }
        li{
            padding:12px;
            position:relative;
        }
        label{
            width:80px;
            display:inline-block;
            float:left;
            line-height:30px;
        }
        input[type='text'],input[type='password']{
            height:30px;
        }
        img{
            margin-left:10px;
        }
        input[type="submit"]{
            margin-left:80px;
            padding:5px 10px;
        }
    </style>
</head>
<body>
   <form action="zhuce.php" method="post">
      <ul>
        <li>
            <label>用戶名:</label>
            <input type="text" name="username" placeholder="請(qǐng)輸入注冊(cè)賬號(hào)"/>
        </li>
        <li>
            <label>密 碼:</label>
            <input type="password" name="password" placeholder="請(qǐng)輸入密碼" />
        </li>
        <li>
            <label>確認(rèn)密碼:</label>
            <input type="password" name="confirm" placeholder="請(qǐng)?jiān)俅屋斎朊艽a" />
        </li>
        <li>
            <label>郵 箱:</label>
            <input type="text" name="email" placeholder="請(qǐng)輸入郵箱"/>
        </li>
        <li>
            <label>驗(yàn)證碼:</label>
            <input type="text" name="code" size="4" style="float:left" placeholder="請(qǐng)?zhí)顚戲?yàn)證碼"/>
            <a href="javascript:;" onclick="document.getElementById('captcha_img').src='captcha.php?r='+Math.random()">
                <img id="captcha_img" border='1' src='captcha.php?r=echo rand(); ?>' style="width:100px; height:30px" />
            </a>
        </li>
        <li>
            <input type="submit" value="注冊(cè)" />
        </li>
      </ul>
  </form>
</body>

與登錄頁面類似,這里我們?cè)黾恿舜_認(rèn)密碼和注冊(cè)郵箱文本框。

繼續(xù)學(xué)習(xí)
||
<!DOCTYPE html> <html> <head> <title>用戶注冊(cè)頁面</title> <meta charset="UTF-8"/> <style type="text/css"> *{margin:0px;padding:0px;} ul{ width:400px; list-style:none; margin:50px auto; } li{ padding:12px; position:relative; } label{ width:80px; display:inline-block; float:left; line-height:30px; } input[type='text'],input[type='password']{ height:30px; } img{ margin-left:10px; } input[type="submit"]{ margin-left:80px; padding:5px 10px; } </style> </head> <body> <form action="zhuce.php" method="post"> <ul> <li> <label>用戶名:</label> <input type="text" name="username" placeholder="請(qǐng)輸入注冊(cè)賬號(hào)"/> </li> <li> <label>密 碼:</label> <input type="password" name="password" placeholder="請(qǐng)輸入密碼" /> </li> <li> <label>確認(rèn)密碼:</label> <input type="password" name="confirm" placeholder="請(qǐng)?jiān)俅屋斎朊艽a" /> </li> <li> <label>郵 箱:</label> <input type="text" name="email" placeholder="請(qǐng)輸入郵箱"/> </li> <li> <label>驗(yàn)證碼:</label> <input type="text" name="code" size="4" style="float:left" placeholder="請(qǐng)?zhí)顚戲?yàn)證碼"/> <a href="javascript:;" onclick="document.getElementById('captcha_img').src='captcha.php?r='+Math.random()"> <img id="captcha_img" border='1' src='captcha.php?r=echo rand(); ?>' style="width:100px; height:30px" /> </a> </li> <li> <input type="submit" value="注冊(cè)" /> </li> </ul> </form> </body>
提交重置代碼