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

Inscription au tutoriel sur le petit forum de développement PHP-1

Créer un fichier reg.html

La page d'inscription que nous souhaitons faire comme indiqué ci-dessous

utilise le style tableau + css pour la mise en page

reg.jpg
Le code est le suivant

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用戶注冊</title>
    <style type="text/css">
        table{
            height: 300px;
        }
        input{
            width: 190px;
            height: 25px;
        }
        .title{
            background-color:#B10707 ;
            color: white;
            border: none;
        }
        .but{
            width: 140px;
            height: 43px;
        }
        .spa{
            margin-left: 10px;
        }
    </style>
    <script type="text/javascript">
        function checkinput()
        {
            if(myform.username.value=="")
            {
                alert("請輸入你的賬號");
                myform.username.focus();
                return false;
            }
            if (myform.password.value=="")
            {
                alert("請輸入密碼");
                myform.password.focus();
                return false;
            }
            if(myform.password.value != myform.password1.value){
                alert("你輸入的兩次密碼不一致,請重新輸入!");
                myform.password.focus();
                return false;
            }
        }
    </script>
</head>
<body>
<form method="post" action="reg.php"  onsubmit=" return checkinput();" name="myform">
    <table width="400px" border="1" cellpadding="12" cellspacing="1" align="center">
        <tr>
            <td colspan="2" class="title">用戶注冊<span class="spa">[<a style="color: white"  href="index.php">返回首頁]</a></span></td>
        </tr>
        <tr>
            <td width="110px">會  員   ID</td>
            <td><input type="text" name="username" autocomplete="off"></td>
        </tr>
        <tr>
            <td width="110px">密  碼</td>
            <td><input type="password" name="password" autocomplete="off"></td>
        </tr>
        <tr>
            <td width="110px">確認密碼</td>
            <td><input type="password" name="password1"></td>
        </tr>
        <tr>
            <td width="110px">郵  箱</td>
            <td><input type="email" name="email"></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <button class="but" style="text-align: center">立即注冊</button>
            </td>
        </tr>
    </table>
</form>
</body>
</html>

L'étape suivante consiste à soumettre les informations que nous avons renseignées pour l'inscription à la page reg.php pour traitement


Formation continue
||
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>用戶注冊</title> <style type="text/css"> table{ height: 300px; } input{ width: 190px; height: 25px; } .title{ background-color:#B10707 ; color: white; border: none; } .but{ width: 140px; height: 43px; } .spa{ margin-left: 10px; } </style> <script type="text/javascript"> function checkinput() { if(myform.username.value=="") { alert("請輸入你的賬號"); myform.username.focus(); return false; } if (myform.password.value=="") { alert("請輸入密碼"); myform.password.focus(); return false; } if(myform.password.value != myform.password1.value){ alert("你輸入的兩次密碼不一致,請重新輸入!"); myform.password.focus(); return false; } } </script> </head> <body> <form method="post" action="reg.php" onsubmit=" return checkinput();" name="myform"> <table width="400px" border="1" cellpadding="12" cellspacing="1" align="center"> <tr> <td colspan="2" class="title">用戶注冊<span class="spa">[<a style="color: white" href="index.php">返回首頁]</a></span></td> </tr> <tr> <td width="110px">會 員 ID</td> <td><input type="text" name="username" autocomplete="off"></td> </tr> <tr> <td width="110px">密  碼</td> <td><input type="password" name="password" autocomplete="off"></td> </tr> <tr> <td width="110px">確認密碼</td> <td><input type="password" name="password1"></td> </tr> <tr> <td width="110px">郵  箱</td> <td><input type="email" name="email"></td> </tr> <tr> <td colspan="2" align="center"> <button class="but" style="text-align: center">立即注冊</button> </td> </tr> </table> </form> </body> </html>
soumettreRéinitialiser le code