Welcome Guest, Not a member yet? Register   Sign In
Date validation CI 1.7
#10

[eluser]helmutbjorg[/eluser]
Not sure if i fully understand your problem... but this may help

You CAN do without the actual element in the form
Code:
$this->form_validation->set_rules('date_of_birth', 'Birthday', 'required');

IF you do this before it (not tested by i'm pretty sure)
Code:
$_POST['date_of_birth'] = $this->input->post('day').' '.$this->input->post('month').' '.$this->input->post('year');
$this->form_validation->set_rules('date_of_birth', 'Birthday', 'required');

So in other words concatenate each drop down together (however you need to) and trick the form validation into thinking you posted that field.


Messages In This Thread
Date validation CI 1.7 - by El Forum - 01-09-2009, 06:46 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 07:16 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 07:36 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 07:47 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 07:51 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 07:54 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 08:02 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 08:03 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 08:22 AM
Date validation CI 1.7 - by El Forum - 01-09-2009, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB