Form validation stange issue - 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: Form validation stange issue (/showthread.php?tid=29589) |
Form validation stange issue - El Forum - 04-14-2010 [eluser]BenRob[/eluser] I've used CI for a good couple of years and used the function a lot but for some reason its not working this time please please please can someone help Code: $this->load->library('form_validation'); Form validation stange issue - El Forum - 04-14-2010 [eluser]danmontgomery[/eluser] Can you be more specific about what the problem is? Form validation stange issue - El Forum - 04-14-2010 [eluser]BenRob[/eluser] the validation just isn't running When i submit the form i get 'problem' echoed I've tried to take it right back to find the problem and a simple valid or problem shows the validation is not working Any ideas its killing me Form validation stange issue - El Forum - 04-14-2010 [eluser]Bart v B[/eluser] You need to setup youre view where the form is.. there you need to add the 'error views'. Just add this in youre view where youre form is: Code: <?php echo validation_errors(); ?> Yes, you can seperate it, look at the user guide for that And youre controller: Code: <?php Form validation stange issue - El Forum - 04-14-2010 [eluser]danmontgomery[/eluser] That doesn't mean it's not running, it just means that it's not passing validation... What if you put: Code: echo validation_errors(); instead of 'problem'? Form validation stange issue - El Forum - 04-14-2010 [eluser]Bart v B[/eluser] Noctrum.. it is a 'problem' when it's not running Just joking.. Form validation stange issue - El Forum - 04-15-2010 [eluser]flaky[/eluser] are you using HMVC ? Form validation stange issue - El Forum - 04-15-2010 [eluser]hagbard Celine[/eluser] [quote author="BenRob" date="1271292550"]I've used CI for a good couple of years and used the function a lot but for some reason its not working this time please please please can someone help Code: $this->load->library('form_validation'); remove your $_POST condition. or try this... Code: $this->load->library('form_validation'); |