Welcome Guest, Not a member yet? Register   Sign In
min_length and max_length being ignored
#1

[eluser]Sepix[/eluser]
Hello!

I have the problem that min_length and max_length is not working at all for me. It is not only that it doesn't create any Error Message, it just doesn't get called entirely. The form gets send without it being validated. I tested this by sending the form multiple times as well as placing Echo Code inside the min and max length function in the library. It seems like the functions are not executed. Other flags like "unique" work totally fine.

I have this problem with CI Versions 2.1.1 and 2.1.2 so far.

Just to make sure i didnt do anything wrong here are the code snippets of my test:


The Form Field:

Code:
<p>Test Name: &lt;input name="name" value="&lt;?php echo set_value('name'); ?&gt;"&gt;&lt;/p>


The Validation:

Code:
$this->form_validation->set_rules('name', 'Name', 'required|min_length[10]');


Does anyone else have the same problem?


Messages In This Thread
min_length and max_length being ignored - by El Forum - 07-08-2012, 05:39 PM
min_length and max_length being ignored - by El Forum - 07-08-2012, 07:54 PM
min_length and max_length being ignored - by El Forum - 07-08-2012, 11:30 PM
min_length and max_length being ignored - by El Forum - 07-09-2012, 01:41 AM
min_length and max_length being ignored - by El Forum - 07-09-2012, 02:07 AM
min_length and max_length being ignored - by El Forum - 07-09-2012, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB