(); 添加用戶(hù)提交處理$this-">
index() {
("-Type:text/html; =utf-8");
$ = new ();
$ = $->();
$this->('Title'thinkphp字段添加到數(shù)據(jù)庫(kù),'用戶(hù)管理');
$this->(''thinkphp字段添加到數(shù)據(jù)庫(kù), $);
$this->();
}
//添加用戶(hù)提交處理
() {
$ = new ();
$data[''] = $this->_post('');
$data[''] = md5($this->_post('pwd'));
if ($->()) {
$ = $->add($data);
if (false !== $) {
$this->('用戶(hù)添加成功');
} else {
$this->error('用戶(hù)添加錯(cuò)誤');
}
} else {
("-Type:text/html; =utf-8");
exit($->() . ' [ ]');
}
}