![]() |
newb question, validation not successful even when it should be - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: newb question, validation not successful even when it should be (/showthread.php?tid=50160) |
newb question, validation not successful even when it should be - El Forum - 03-16-2012 [eluser]Unknown[/eluser] This code doesn't seem to work. When I submit my form, and validation is successful, it just still goes back to the form. It appears $this->form_validation->run() is returning false even though no errors are showing in the validation. Also, I removed the is_unique attribute to see if that was causing problems and it behaved the same. What am I doing wrong? Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); [/code] views/myaccount/signup.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> newb question, validation not successful even when it should be - El Forum - 03-16-2012 [eluser]Aken[/eluser] Are you sure no errors are being returned? I don't see you echoing the validation_errors() function anywhere, which is what would tell you what errors the validation library is generating. newb question, validation not successful even when it should be - El Forum - 03-29-2012 [eluser]Unknown[/eluser] Thanks for that tip. That didn't cause the problem, but once I stuck that in there the form started working properly (this is now what, 2 weeks later ![]() |