Welcome Guest, Not a member yet? Register   Sign In
An Error Was Encountered
#3

[eluser]nirbhab[/eluser]
You can also do this:
Code:
if ($this->validation->run() == FALSE)
        {
            $this->load->view('blog/comments', $data);
        }
        else
        {
                $this->db->insert('comments', $_POST);
                redirect('blog/comments/'.$_POST['entry_id']);
                //REDIRECT TO SOME OTHER METHOD, AS IT IS COMING TO SELF METHOD.redirect('blog/comments/'.$_POST['entry_id']);
            //redirect('blog/comment_insert');
        }


Messages In This Thread
An Error Was Encountered - by El Forum - 03-24-2008, 08:43 PM
An Error Was Encountered - by El Forum - 03-24-2008, 09:35 PM
An Error Was Encountered - by El Forum - 03-24-2008, 09:39 PM
An Error Was Encountered - by El Forum - 03-24-2008, 09:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB