CodeIgniter Forums
SVN 1.7 / form_validation issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: SVN 1.7 / form_validation issue (/thread-11203.html)



SVN 1.7 / form_validation issue - El Forum - 08-30-2008

[eluser]awpti[/eluser]
so, I'm switching ignitedjobs.com to use the newer revision of form_validation.

While it does validate if everything is good - if something is wrong, the validation_errors function doesn't seem to ever output any data.

For instance;

I have a field called job_location which is required|max_length[64]

If this field is empty, it will refresh the form with all data still in the form, but 'echo validation_errors()' under my header results in no output. This is a fresh SVN pull.

Being called as such in the view:

Code:
<?php
echo $header;

echo validation_errors();

// rest of the form here

Again, it is passing validation as long as the fields are filled in correctly. If validation fails, there seem to be no errors in validation_errors()


SVN 1.7 / form_validation issue - El Forum - 08-30-2008

[eluser]Colin Williams[/eluser]
First of all, you probably shouldn't use currently unstable code (especially if it's not a critical security issue). Not only is it rough around the edges, there could be yet undiscovered security vulnerabilities.

Second, I thought this specific issue was fixed in revision 1318?


SVN 1.7 / form_validation issue - El Forum - 08-30-2008

[eluser]awpti[/eluser]
I'm doing this in preparation for 1.7

IJ 2.0 isn't going to have a release for at least 2-3 months, and my guess is 1.7 is going to appear before then.