求助:autoCheckToken(create) 表单令牌错误

浏览:3802 发布日期:2013/04/15 分类:求助交流
app.html:<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();
}
不会输出成功,求教哪里出错了
最佳答案
评论() 相关
后面还有条评论,点击查看>>