Validation - No duplicated items for the dropdown box |
[eluser]cinewbie81[/eluser]
I have 3 dropdown box. Each of them have the same items and values in it as shown following: Code: $options = array( How can i do for the validation part to ensure that there's no duplicated selection of Department ? For eg: HR department can only selecte once from those 3 dropdown box. Thanks in advance
[eluser]souto[/eluser]
I have the same exact problem, funny. I'm trying to develop a solution using the Validation class and the solution given here http://ellislab.com/forums/viewthread/63111/ I'll be sure to let you know when I finish it.
[eluser]Michael Wales[/eluser]
Code: $array = array($this->input->post('department_1')); That could be cleaned up quite a bit - but you get the point.
|
Welcome Guest, Not a member yet? Register Sign In |