Welcome Guest, Not a member yet? Register   Sign In
Validating multidimensional arrays
#1

I have two fields, named title[1] and title[2].
Quote:Indexes are used to mention the language id.


When I use this;

Code:
$this->form_validation->set_rules("title[]", "Menu title", "required");

It only validates the first index but not second or others using CodeIgniter 2.2.1. I want to know is there any fix so CI its self check for all the indexes and apply the same rule. Just like set_value["title[]"] reloads the value for each field automatically.


Regards Smile
Reply


Messages In This Thread
Validating multidimensional arrays - by adnnor - 10-20-2015, 02:49 AM
RE: Validating multidimensional arrays - by PaulD - 10-20-2015, 09:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB