Welcome Guest, Not a member yet? Register   Sign In
Custom validation rule + array
#5

[eluser]Mark Croxton[/eluser]
Ok, to answer your original question: why not look at the values in the $_POST global: $_POST['my_element[]']?

Or better, use CI's input class: $this->input->post('my_element[]');

EDIT: now you've edited your last post I see what you're trying to do. I believe CI parses those rules with a regular expression so using an array there won't fly. Why not pass as a string with a delimiter and explode() back into an array?


Messages In This Thread
Custom validation rule + array - by El Forum - 07-13-2010, 10:10 AM
Custom validation rule + array - by El Forum - 07-31-2010, 08:31 PM
Custom validation rule + array - by El Forum - 08-02-2010, 10:54 AM
Custom validation rule + array - by El Forum - 08-02-2010, 10:59 AM
Custom validation rule + array - by El Forum - 08-02-2010, 11:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB