ThinkPHP学习笔记(十)在Model中完成自动验证前台的表单数据
index.html
UserModel.class.php
15||strlen($data)
display(); } function add(){ //经过自定义模型 $user=D('user'); if ($user->create()) { if ($user->add()){ $this->success("注册成功"); }else{ $this->error($user->getError()); } }else{ $this->error($user->getError()); } }}?>
已抢23778个
抢已抢118295个
抢已抢139527个
抢已抢6339个
抢已抢36663个
抢已抢66984个
抢