[eluser]xtarx[/eluser]
I want to validate some POST data from an 'httpRequest' using the same functions of
form validation , i did some how copy functions form the 'form_validation' library ,but is there any better way to do it?
I want to do something like this
Code:
$this->form_validation->set_rules($_post['username'], 'Username', 'required');
$this->form_validation->set_rules($_post['password'], 'Password', 'required');
$this->form_validation->set_rules($_post['email'], 'Email', 'required');