<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index-select</title>
</head>
<body>
<form action='__ACTION__'>
用 名:<input type="text" name="username"><br/>
邮 箱:<input type="text" name="email"><br/>
内 容:<textarea cols="40" rows="10" name="content"></textarea><br/><br/>
<input type="submit" name="submit" value="提交">
<input type="reset" value="重置">
</form>
</body>
</html>方法:public function add(){
if(!empty($_GET['submit'])){
$User = D('User');
if($User->autoCheckToken()){
$this->success('成功','__APP__');
}else{
$this->error($User->getError());
}
}
$this->display();
}
不会输出成功,求教哪里出错了
最佳答案