Welcome Guest, Not a member yet? Register   Sign In
passing an array to form - update
#2

[eluser]JoostV[/eluser]
By default, CI can not deal with arrays in $this->input and $this-=>validation. Could this be what is buggin you?

If so, the way I see you have three options:

- use $_POST['businessType'] to access your array of post values from checkboxes, instead of $this->input->post('businessType'). $_POST can handle arrays.
- use checkboxenames like businessType_1, businessType_2 and loop through those using $this->input or $this->validation. (not a very elegant solution, but it works)
- search the forums for a library that DOES allow CI to work with arrays in $this->input and $thjis->validation. I'm sure there are some out there.


Messages In This Thread
passing an array to form - update - by El Forum - 09-24-2008, 01:50 PM
passing an array to form - update - by El Forum - 09-24-2008, 03:55 PM
passing an array to form - update - by El Forum - 09-24-2008, 04:23 PM
passing an array to form - update - by El Forum - 09-24-2008, 05:32 PM
passing an array to form - update - by El Forum - 09-24-2008, 11:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB