Welcome Guest, Not a member yet? Register   Sign In
Form Validation max_length not working?
#1

[eluser]Jacob Graf[/eluser]
I am trying to use max_length[10] for some fields with form_validation and I keep getting the following error upon page load. If I remove all of the max_length checks, everything works great!

Code:
A PHP Error was encountered

Severity: Warning

Message: mb_strlen() expects parameter 1 to be string, array given

Filename: libraries/Form_validation.php

Line Number: 982

Here is an example of one of my rules...

Code:
array (
      'field' => 'city',
      'label' => 'City',
      'rules' => 'required|max_length[30]'
      ),


Messages In This Thread
Form Validation max_length not working? - by El Forum - 07-07-2011, 08:03 PM
Form Validation max_length not working? - by El Forum - 07-07-2011, 09:37 PM
Form Validation max_length not working? - by El Forum - 07-07-2011, 09:38 PM
Form Validation max_length not working? - by El Forum - 07-07-2011, 09:41 PM
Form Validation max_length not working? - by El Forum - 07-07-2011, 10:10 PM
Form Validation max_length not working? - by El Forum - 07-15-2011, 08:13 PM
Form Validation max_length not working? - by El Forum - 07-16-2011, 03:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB