THINKPHP数据提交有关问题

WBOY
Release: 2016-06-13 13:48:15
Original
925 people have browsed it

THINKPHP数据提交问题
提交之后在表里找结果,发现只有字段title里面有数据,其他的都是空的。

html:


 


 
 
 


 


 
 
 


 


 


 
 


 



class:
 function add() {
  $Form = D("Form");
  if($Form->create()) {
  $Form->add();
  $this->redirect();
  }else{
  header("Content-Type:text/html; charset=utf-8");
  exit($Form->getError().' [ 返 回 ]');
  }
  }


------解决方案--------------------
你的html name和表的字段名一样,字段影射除外,修改过数据库后,把runtime文件夹删掉。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template