Welcome Guest, Not a member yet? Register   Sign In
Redirect Problem
#1

[eluser]Computerzworld[/eluser]
Hello. I am having problem in redirecting the page to other page. Here is the code which I have written.

Code:
function forgotPass()
    {
        $this->pageHeader();
        
        $rules = array(
                    "email_address"    =>    "required|valid_email|callback_email_check",
                    );
        $this->validation->set_rules($rules);
        
        $fields = array(
        "email_address"        =>    "E-mail",
        );
        $this->validation->set_fields($fields);
        
        if ($this->validation->run())
        {
            $email = $this->input->post('email_address');
            //$this->mdl_users->userName = $userName;
            redirect('login/checkUser/'); /*This is not working */
        }
        
        $data = array(
        "TITLE"          => $this->lang->line('TITLE'),
        "EMAIL"       => $this->lang->line('EMAIL'),
        "SUBMIT"       => $this->lang->line('SUBMIT')
        );
        
        $this->parser->parse('forgotpass',$data);
        $this->pageFooter();
    
    }
    
    function checkUser()
    {
        $this->pageHeader();
        echo "here";
        exit;
        $this->pageFooter();
    
    }

Instead of redirecting the page it remains in the same function(forgotPass). I am stuck at this point. Please help me. Thanks in advance.


Messages In This Thread
Redirect Problem - by El Forum - 05-28-2008, 04:27 AM
Redirect Problem - by El Forum - 05-28-2008, 04:46 AM
Redirect Problem - by El Forum - 05-28-2008, 09:43 AM
Redirect Problem - by El Forum - 05-28-2008, 09:27 PM
Redirect Problem - by El Forum - 05-28-2008, 09:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB