php 實現簡單的登陸

//登陸頁面:

V層前端模板:

Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp/Home/Tpl/Login
$ ls
index.html

<!doctype html>
<html lang="en">
 <head>

  <meta name="Generator" content="EditPlus?">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  <!doctype html>
<html lang="en">
 <head>

  <meta name="Generator" content="EditPlus?">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
 <center>
 <h1>中均運維管理平臺</h1>
   <!--圖片標籤-->
<img src="__PUBLIC__/Images/scan.jpg"/>
 </center>
 <form>
 <center>
 用戶名:<input type='text' name='username'/><br/>
 
 密 碼:<input type='passwords' name='password'/><br/>
 
 驗證碼:<input type='text' name='code'/><br/>
 
 <input type='submit'/>
  <center/>
<!-- <table width="600" hborder="0" cellspacing="0" cellpadding="0">

<tr>

<td>用戶名:</td>
<td><input type="text" name="username"/></td>

<td>密碼:</td>
<td><input type="password" name="password"/></td>

<td><input type="button" name="login" value="login"/></td>

</tr> -->



 </form>


  

 </body>
</html>

 </body>
</html>


// C層類

Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp/Home/Lib/Action
$ ls -ltr LoginAction.class.php

<?php
 class LoginAction extends Action {
	 function index(){
		 $this->display();
	 }
}
?>
相關文章
相關標籤/搜索