CodeIgniter Forums
FYI on blank validation error_string - 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: FYI on blank validation error_string (/thread-13172.html)



FYI on blank validation error_string - El Forum - 11-13-2008

[eluser]cynge[/eluser]
It took me a little bit to look this up in the code after I didn't find anything in the forum so I thought I would add this...

If your form_validation is invalid but you aren't getting any error data back (e.g. $this->form_validation->error_string() or validation_errors() is empty) it is most likely because no data is being sent through POST. If $_POST is blank form_validation->run will return FALSE and not run any validation rules.