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

[eluser]rabidmacine9[/eluser]
Ok the good news is that I found where the exact problem is...

Everytime I submit the form all data are stored in the DB except "entry_id" so thats why the comments are not displayed as they should be...

Actually I don't want my "entry_id" to be marked as required I just want it to be posted from a hidden field every time I submit a form...

anybody knows how can I do that?


And also...@pickupman
your answer was nice and it had some really good points...but when I replace this line :
Code:
$entry_id = $data ['entry_id'] = $this->uri->segment(3);

with these two lines:
Code:
$data ['entry_id'] = $this->uri->segment(3); //here we grub the id of the entry we comment
      
      $this->db->where('entry_id', $data['entry_id']);


I get an error that $entry_id variable is not defined...
any idea why is that?
thanks a lot to everybody


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