Welcome Guest, Not a member yet? Register   Sign In
Validate Multiple Inputs Together?
#3

[eluser]pistolPete[/eluser]
You could simplify it a bit: You don't need monthCheck(), dayCheck() and yearCheck().

Code:
public function finalAgeValidation()
{
        $month = $this->input->post('ageMonth');
        $day = $this->input->post('ageDay');
        $year = $this->input->post('ageYear');

...
}

Another thought:
Why don't you use a single input field where the date is entered like "01/02/1967"; you could then split the values into day, month and year in a single callback.


Messages In This Thread
Validate Multiple Inputs Together? - by El Forum - 10-07-2009, 09:34 PM
Validate Multiple Inputs Together? - by El Forum - 10-07-2009, 10:19 PM
Validate Multiple Inputs Together? - by El Forum - 10-08-2009, 01:08 AM
Validate Multiple Inputs Together? - by El Forum - 10-08-2009, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB