Welcome Guest, Not a member yet? Register   Sign In
One validation callback when using arrays
#3

[eluser]vamsee[/eluser]
I understand the what ur trying to do

I used this and worked so u also try it
In Controller
Code:
array(
                     'field'   => 'nric[1]',
                     'label'   => 'NRIC(Part1)',
                     'rules'   => 'trim|exact_length[6]'
                  ),  
               array(
                     'field'   => 'nric[2]',
                     'label'   => 'NRIC(Part2)',
                     'rules'   => 'trim|exact_length[2]'
                  ),  
               array(
                     'field'   => 'nric[3]',
                     'label'   => 'NRIC(Part3)',
                     'rules'   => 'trim|exact_length[4]'
                  ),  
               array(
                     'field'   => 'nric[]',
                     'label'   => 'NRIC',
                     'rules'   => 'required'
                  )


Messages In This Thread
One validation callback when using arrays - by El Forum - 09-23-2010, 10:25 AM
One validation callback when using arrays - by El Forum - 09-25-2010, 02:37 AM
One validation callback when using arrays - by El Forum - 10-20-2010, 06:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB