recherche
  • Se connecter
  • S'inscrire
Réinitialisation du mot de passe réussie

Suivez les projets qui vous intéressent et découvrez les dernières actualités les concernant.

Page d'enregistrement de connexion au système de connexion d'enregistrement d'utilisateur PHP

Page de connexion

Le code est le suivant :

<!DOCTYPE html>
<html>
 <head>
 <title>php.cn</title>
 <meta charset="utf-8" />
    <style>
         .box{
             width:240px;
             height:90px;
             background:#f0f0f0;
         }
    </style>
 </head>
 <body>
     <!-- 登录界面  login.php-->
     <div class="box">
         <form action="logincheck.php" method="post"> 
             <table>
                <tr>
                    <td align="right">用户名:</td>
                    <td><input type="text" name="username" value="请输入用户名" maxLength="6"/></td>
                </tr>
                <tr>
                    <td align="right">密 码:</td>
                    <td><input type="password" name="userpwd"  maxLength="6"/></td>
                </tr>
                <tr>
                    <td><input type="submit" name="submit" value="登陆" /> </td>
                    <td><a href="register.php">注册</a></td>
                </tr>
             </table>
         </form>
     <div>
 </body>
</html>

Explication du code :

  • Il se compose d'un formulaire

  • Soumettre en utilisant la méthode post

  • Soumettre au interface de traitement de connexion

  • Cliquez sur vous inscrire pour accéder à l'interface d'inscription


Page d'inscription

Le code est le suivant :

<!DOCTYPE html>
<html>
 <head>
 <title>php.cn</title>
 <meta charset="utf-8" />
 <style>
         .box{
             width:250px;
             height:120px;
             background:#f0f0f0;
         }
    </style>
 </head>
 <body>
     <!-- 注册界面  register.php-->
      <div class="box">
        <form action="regcheck.php" method="post"> 
            <table>
                <tr>
                    <td align="right">用户名:</td>
                    <td><input type="text" name="username" value="请输入用户名" maxLength="6"/></td>
                </tr>
                <tr>
                    <td align="right">密 码:</td>
                    <td><input type="password" name="userpwd"  maxLength="6"/></td>
                </tr>
                <tr>
                    <td align="right">确认密码:</td>
                    <td><input type="password" name="confirm"  maxLength="6"/></td>
                </tr>
                <tr>
                    <td colspa="2" align="right"><input type="Submit" name="Submit" value="注册"/></td>
                </tr>
             </table>
        </form>
    </div>   
 </body>
</html>

Explication du code :

  • Composé d'un formulaire

  • Soumettre en utilisant la méthode post

  • Soumettre au processus d'inscription interface

nouveau fichier
<!DOCTYPE html> <html> <head> <title>php.cn</title> <meta charset="utf-8" /> <style> .box{ width:240px; height:90px; background:#f0f0f0; } </style> </head> <body> <!-- 登录界面 login.php--> <div class="box"> <form action="logincheck.php" method="post"> <table> <tr> <td align="right">用户名:</td> <td><input type="text" name="username" value="请输入用户名" maxLength="6"/></td> </tr> <tr> <td align="right">密 码:</td> <td><input type="password" name="userpwd" maxLength="6"/></td> </tr> <tr> <td><input type="submit" name="submit" value="登陆" /> </td> <td><a href="register.php">注册</a></td> </tr> </table> </form> <div> </body> </html>
Réinitialiser le code
Opération automatique
soumettre
Aperçu Clear
  • Recommandations de cours
  • Téléchargement du didacticiel