#1 canlanrizi
在这里看了一个教程:http://speedphp.com/post/md5-password-input.html按照里面的:
在Smarty中也可以使用pwinput函数:
view sourceprint?01import("spAcl.php");
02class main extends spController
03{
04 function index(){
05 $this->display("form.html");
06 }
07 function show(){
08 // 在接受提交参数的时候,我们要使用pwvalue()来接收传输的代码
09 $md5_password = spClass("spAcl")->pwvalue();
10 echo $md5_password;
11 }
12}
模板form.html
view sourceprint?1
这个启用模板来对数据进行加密是怎样实现的?我把模板加进去了,但是打开页面的时候模板并没有显示。有没有人愿意分享一个简单的源码给我展示一下怎样使用模板对数据进行加密?谢谢~
2010-03-24 13:02:14