Hi all
quick question
i have a form which has alot of fields which are labeled as item1 item1a item2 item2b item3 item3b ect all the way up to 52
they will all need to be validated with the same options can i use the $post array in the validation
$data = $this->input->post(NULL, TRUE);
$this->form_validation->set_rules($data, 'data', 'required');
if ($this->form_validation->run() == FALSE)
{
echo "fail";
}
else
{
echo "win";
}
so i can validate them all in one swoop rather than doing a separate line for each ?
many thanks
cbiz