brophp 框架的问题

既写了REG.TPL文件,也写了USER.XML文件,开始还能弹出来诸如:"密码不正确"之类的但转向INSERT页面后就全是空白,后来在注册页面什么也不输入的情况下,就直接转向了INSERT页面,但浏览器上一片空白,什么也没有.请教高老师怎么办?
<?php
    class User {
    
        function index(){
                
                $user = D("user");                
                p($user->select());
        }
        function login(){
                
        }
        function islogin(){
        
        }
        function logout(){
        
        }
        function code (){
            
            echo new Vcode(90,30);
        }
        function reg(){
            
            $this->display();
        }    
        function insert (){
            $user= D("user");
        
            //$_POST["password"] = md5($_POST["password"]);
            //$_POST["repassword"] = md5($_POST["repassword"]);
            //strtoUpper($_POST["code"])== $_SESSION["code"];
            if($user->insert()){
                  $this->success("用户注册成功!", 2, "index");
            }else{
                  $this->error($user->getMsg(), 4, "reg");
            }
        }
    }

作者: lzh409   发布时间: 2011-10-02

作者: lzh409   发布时间: 2011-10-02