Welcome Guest, Not a member yet? Register   Sign In
trying to understand form_validation
#6

[eluser]rabidmacine9[/eluser]
this is becoming more and more difficult... I'm trying what you suggest and it doesn't seem to work...
there is also another side effect when that runs:

Code:
if ($this->form_validation->run() == FALSE)
{
    $this->load->view('comment_view'); //renders page
}

the content of the page is displayed twice,
thats why I was using this code in my first post:

Code:
if ($this->form_validation->run() == TRUE)
        {    
        
           $this->db->insert('comments', $_POST);
      
           redirect('myBlog/comments/'.$entry_id);
          // $this->comment_insert();
            $this->load->view('myBlog/comments/'.$entry_id);
        }
it saves the trouble of repeating itself...
but the main problem is that it still wont do any addition to the database...it will redisplay the page with no changes


Messages In This Thread
trying to understand form_validation - by El Forum - 07-02-2010, 01:39 PM
trying to understand form_validation - by El Forum - 07-02-2010, 08:33 PM
trying to understand form_validation - by El Forum - 07-03-2010, 05:38 AM
trying to understand form_validation - by El Forum - 07-03-2010, 06:43 AM
trying to understand form_validation - by El Forum - 07-03-2010, 11:31 AM
trying to understand form_validation - by El Forum - 07-03-2010, 12:28 PM
trying to understand form_validation - by El Forum - 07-03-2010, 04:08 PM
trying to understand form_validation - by El Forum - 07-04-2010, 07:45 AM
trying to understand form_validation - by El Forum - 07-04-2010, 08:05 AM
trying to understand form_validation - by El Forum - 07-04-2010, 08:15 AM
trying to understand form_validation - by El Forum - 07-04-2010, 11:02 AM
trying to understand form_validation - by El Forum - 07-04-2010, 11:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB