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

La page de connexion au développement PHP passe à la page d'inscription

Dans les deux chapitres précédents, nous avons présenté la mise en ?uvre fonctionnelle des modules d'enregistrement et de connexion des utilisateurs.

Voici un code simple pour ajouter un lien d'inscription à la page de connexion

1612.png

Il vous suffit d'ajouter le lien <a> la page de connexion et ajouter un style CSS simple peut réaliser un saut de page

<li>
    <input type="submit" value="登錄" name="do_submit"/>
    <a href="zhuce.html" style="text-decoration: none; padding-left: 30px;">注冊</a>
</li>

Code complet?:

<!DOCTYPE html>
<html>
<head>
    <title>用戶登錄頁面</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="logins.php" method="post">
        <ul>
            <li>
                <label>用戶名:</label>
                <input type="text" name="username" placeholder="請輸入登錄賬號"/>
            </li>
            <li>
                <label>密碼:</label>
                <input type="password" name="password" placeholder="請輸入密碼" />
            </li>
            <li>
                <label>驗證碼:</label>
                <input type="text" name="code" size="4" style="float:left"/>
                <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="登錄" />
                <a href="zhuce.html" style="text-decoration: none; padding-left: 30px;">注冊</a>
            </li>
        </ul>
    </form>
</body>
</html>


Formation continue
||
<!DOCTYPE html> <html> <head> <title>用戶登錄頁面</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="logins.php" method="post"> <ul> <li> <label>用戶名:</label> <input type="text" name="username" placeholder="請輸入登錄賬號"/> </li> <li> <label>密碼:</label> <input type="password" name="password" placeholder="請輸入密碼" /> </li> <li> <label>驗證碼:</label> <input type="text" name="code" size="4" style="float:left"/> <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="登錄" /> <a href="zhuce.html" style="text-decoration: none; padding-left: 30px;">注冊</a> </li> </ul> </form> </body> </html>
soumettreRéinitialiser le code