Welcome Guest, Not a member yet? Register   Sign In
"Commit" topic in Codeigniter by using Ajax
#2

[eluser]toopay[/eluser]
this is how you should use validation set_rules function :
Code:
// Here you passed the value of $_POST['c_title']. This wrong
$this->form_validation->set_rules($title,"Comment title","required");
// If, you have $_POST['c_title'] as param, you use set_rules like this
$this->form_validation->set_rules('c_title',"Comment title","required");


Messages In This Thread
"Commit" topic in Codeigniter by using Ajax - by El Forum - 06-02-2011, 01:32 PM
"Commit" topic in Codeigniter by using Ajax - by El Forum - 06-05-2011, 03:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB