Welcome Guest, Not a member yet? Register   Sign In
validation dont't show message
#7

[eluser]jdfwarrior[/eluser]
Did you try changing the register function to being a constructor by PHP5 standards? Change the register function to be:

Code:
class Register Extends Controller{
        function _construct(){ //instead of function register() {
            parent::Controller();
            $this->load->helper("form");
            $this->load->library("form_validation");
            
        }
        
        function index(){
            $data["head"] = "register new user";
            $data["title"] = "form register new user";
            $data["meta"] = "register form ";
            $this->load->view("register_view",$data);
        }
        
        function register_process(){
           $data["head"] = "register new user";
            $data["title"] = "form register error";
            $data["meta"] = "register form ";
            $this->form_validation->set_rules("username","username","required|min_length[5]");
            

            
            if($this->form_validation->run() == false){
                
                $this->load->view("register_view",$data);
            }else{
                
                echo "complete";
            }
        }
}


Messages In This Thread
validation dont't show message - by El Forum - 05-28-2009, 10:33 AM
validation dont't show message - by El Forum - 05-28-2009, 11:27 AM
validation dont't show message - by El Forum - 05-28-2009, 08:17 PM
validation dont't show message - by El Forum - 05-28-2009, 08:38 PM
validation dont't show message - by El Forum - 05-28-2009, 09:36 PM
validation dont't show message - by El Forum - 05-28-2009, 10:32 PM
validation dont't show message - by El Forum - 05-28-2009, 10:40 PM
validation dont't show message - by El Forum - 05-28-2009, 10:54 PM
validation dont't show message - by El Forum - 05-29-2009, 01:58 AM
validation dont't show message - by El Forum - 05-29-2009, 06:27 AM
validation dont't show message - by El Forum - 05-29-2009, 07:10 AM
validation dont't show message - by El Forum - 06-05-2009, 04:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB