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

registration page

Create a new Regist.php file under application/index/controller

Write the registered front-end page, the code is as follows:

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

View points to the index directory, create a new View/regist/index.html file in the application/index directory, and write the front-end code as follows:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>注冊</title>
  </head>
  <style>
   dl{
      text-align:center;
      border:2px solid #008800;
      margin-top:100px;
      margin-bottom:100px;
      margin-right:700px;
      margin-left:700px;
   }
  </style>
  <body>
<div id="regist_form">
<dl>
  <form action="/public/index.php/index/regist/regist" method="post">
<dt>
  <h1>注冊頁面</h1>
    <p>姓名:<input type="text" name="UserName"></p>
</dt>
<dt>
  <p>性別:男<input type="radio" name="UserSex" value="0">女<input type="radio" name="UserSex" value="1"></p>
</dt>
<dt>
  <p>手機:<input type="text" name="UserTel"></p>
</dt>
<dt>
  <p>郵件:<input type="text" name="UserEmail"></p>
</dt>
<dt>
  <p>地址:<input type="text" name="UserAddress"></p>
</dt>
<dt>
  <p>生日:<input type="text" name="UserBirth"></p>
</dt>
<dt>
  <p>密碼:<input type="password" name="UserPasswd"></p>
</dt>
<dt>
  <p>個性簽名:<input type="text" name="UserSignature"></p>
</dt>
<dt>
  <p>喜好:<input type="text" name="UserHobby"></p>
</dt>
<dt>
  <p><input type="submit" value="注冊"></p>
</dt>
  </form>
</dl>
</div>
  </body>
</html>

Enter in the browser to runhttp://localhost/public/index.php/index/regist/index

The effect is as follows :

微信圖片_20180307131300.png

Continuing Learning
||
<?php echo "注冊頁面展示";
submitReset Code