php 實(shí)現(xiàn)簡單的登錄功能示例【基于thinkPHP框架】
本文實(shí)例講述了php 實(shí)現(xiàn)簡單的登錄功能。分享給大家供大家參考,具體如下:
//登錄頁面:
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>中均運(yùn)維管理平臺</h1> <!--圖片標(biāo)簽--> <img src="__PUBLIC__/Images/scan.jpg"/> </center> <form> <center> 用戶名:<input type='text' name='username'/><br/> 密 碼:<input type='passwords' name='password'/><br/> 驗(yàn)證碼:<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(); } } ?>
更多關(guān)于thinkPHP相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《ThinkPHP入門教程》、《thinkPHP模板操作技巧總結(jié)》、《ThinkPHP常用方法總結(jié)》、《codeigniter入門教程》、《CI(CodeIgniter)框架進(jìn)階教程》、《Zend FrameWork框架入門教程》及《PHP模板技術(shù)總結(jié)》。
希望本文所述對大家基于ThinkPHP框架的PHP程序設(shè)計有所幫助。
- ThinkPHP登錄功能的實(shí)現(xiàn)方法
- ThinkPHP之用戶注冊登錄留言完整實(shí)例
- ThinkPHP3.2.2實(shí)現(xiàn)持久登錄(記住我)功能的方法
- thinkphp框架下實(shí)現(xiàn)登錄、注冊、找回密碼功能
- thinkPHP5項目中實(shí)現(xiàn)QQ第三方登錄功能
- thinkPHP實(shí)現(xiàn)的驗(yàn)證碼登錄功能示例
- ThinkPHP實(shí)現(xiàn)登錄退出功能
- Thinkphp框架 表單自動驗(yàn)證登錄注冊 ajax自動驗(yàn)證登錄注冊
- thinkphp 手機(jī)號和用戶名同時登錄
- PHP實(shí)現(xiàn)用戶異地登錄提醒功能的方法【基于thinkPHP框架】
- thinkphp5框架結(jié)合mysql實(shí)現(xiàn)微信登錄和自定義分享鏈接與圖文功能示例
相關(guān)文章
在CentOS系統(tǒng)上從零開始搭建WordPress博客的全流程記錄
這篇文章主要介紹了在CentOS系統(tǒng)中從零開始搭建WordPress站點(diǎn)的全流程記錄,使用最大眾的Apache服務(wù)器和MySQL數(shù)據(jù)庫環(huán)境,需要的朋友可以參考下2016-04-04laravel orm 關(guān)聯(lián)條件查詢代碼
今天小編就為大家分享一篇laravel orm 關(guān)聯(lián)條件查詢代碼,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2019-10-10PHP中trait的使用和同時引入多個trait時同名方法沖突的處理方法
這篇文章主要介紹了PHP中trait的使用和同時引入多個trait時同名方法沖突的處理,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2023-04-04關(guān)于ThinkPhp 框架表單驗(yàn)證及ajax驗(yàn)證問題
tp數(shù)據(jù)驗(yàn)證有兩種方式,一種是靜態(tài)方式,一種是動態(tài)方式,下面小編給大家?guī)砹薚hinkPhp 框架表單驗(yàn)證及ajax驗(yàn)證問題,感興趣的朋友一起看看吧2017-07-07詳解如何實(shí)現(xiàn)Laravel的服務(wù)容器的方法示例
這篇文章主要介紹了詳解如何實(shí)現(xiàn)Laravel的服務(wù)容器的方法示例,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-04-04PHP的openssl加密擴(kuò)展使用小結(jié)(推薦)
下面小編就為大家?guī)硪黄狿HP的openssl加密擴(kuò)展使用小結(jié)(推薦)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2016-07-07