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>
Aperçu
Clear
- Recommandations de cours
- Téléchargement du didacticiel
Le didacticiel n'est pas disponible au téléchargement pour le moment. Le staff est actuellement en train de l'organiser. Veuillez prêter plus d'attention à ce cours à l'avenir ~
Les étudiants qui ont regardé ce cours apprennent également
Parlons brièvement de la création d'une entreprise en PHP
Introduction rapide au développement web front-end
Développement pratique à grande échelle par Tianlongbabu du cadre MVC version Mini imitant le site Web de l'encyclopédie des choses embarrassantes
Premiers pas avec le développement pratique PHP : création rapide de PHP [Small Business Forum]
Vérification de connexion et forum de discussion classique
Collecte de connaissances sur les réseaux informatiques
Démarrage rapide de la version complète de Node.JS
Le cours front-end qui vous comprend le mieux : HTML5/CSS3/ES6/NPM/Vue/...[Original]
Écrivez votre propre framework PHP MVC (40 chapitres en profondeur/gros détails/à lire absolument pour que les débutants progressent)
















