Welcome Guest, Not a member yet? Register   Sign In
Array passes form validation for string element with the same name -- how to fix?
#2

If the field name is an array - i.e. cms[] - then you must use the exact same for your Validation Rule field name. e.g.

PHP Code:
$this->form_validation->set_rules('cms[]''CMS''is_natural_no_zero'); 

See Using Arrays as Field Names
Reply


Messages In This Thread
RE: Array passes form validation for string element with the same name -- how to fix? - by dave friend - 09-25-2018, 09:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB