本文實(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)維管理平臺(tái)/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é)》。
希望本文所述對(duì)大家基于ThinkPHP框架的PHP程序設(shè)計(jì)有所幫助。
標(biāo)簽:鎮(zhèn)江 黃南 銅川 寶雞 南陽 婁底 宜賓 湛江
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《php 實(shí)現(xiàn)簡單的登錄功能示例【基于thinkPHP框架】》,本文關(guān)鍵詞 php,實(shí)現(xiàn),簡單,的,登錄,功能,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。