[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.