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

Page de connexion

Créez une nouvelle application/index/controller/Login.php

écrivez le code?:

<?php
namespace app\index\controller;
use think\View;
use think\Controller;
class login extends Controller{
  public function index(){
   $view = new View();
    return $view->fetch('index');
  }
}

Pointez sur l'index, créez un nouveau fichier application/index/view/login/index.html, écrivez le code comme suit?:

<!DOCTYPE>
<html>
<head>
   <title>登錄</title>
</head>
<style>
   dl{
      text-align:center;
      border:2px solid #00CC99;
      margin-top:100px;
margin-bottom:100px;
margin-right:400px;
margin-left:400px;
   }
</style>
<body>
   <div id="login_form">
<form action="/public/index.php/index/login/login" method="post">
   <dl>
   <dt>
      <p>用戶名:<input type="text" name="user_name"></p>
   </dt>
   <dt>
      <p>密碼:<input type="password" name="user_passwd"></p>
   </dt>
   <dt>
   </dt>
   <dt>
      <p><input type="submit" value="登錄"></p>
   </dt>
   </dl>
</form>
</div>
</body>
</html>

Entrez http://localhost/public/index.php/index/login/index,

Les résultats en cours sont les suivants?:

微信圖片_20180307133230.png


Formation continue
||
<?php echo "登錄頁(yè)面展示";
soumettreRéinitialiser le code