![]() |
Form validation required not firing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Form validation required not firing (/showthread.php?tid=70619) |
RE: Form validation required not firing - rachidE - 05-09-2018 (05-08-2018, 08:24 AM)qury Wrote:(05-08-2018, 06:03 AM)rachidE Wrote: I've already done that, but without success hello, I did what you suggested, but it still does not work. RE: Form validation required not firing - qury - 05-09-2018 (05-09-2018, 02:40 AM)rachidE Wrote: I did what you suggested, but it still does not work. can you zip up and attach the controller and the form here? Also please let me know the CI version, PHP and platform you are on. RE: Form validation required not firing - rachidE - 05-09-2018 (05-09-2018, 05:42 AM)qury Wrote:(05-09-2018, 02:40 AM)rachidE Wrote: I did what you suggested, but it still does not work. in attach the zip of my files. the vesion of my CI is : 3.1.6 the version of PHP is : 5.6.28 and i'm using XAMP on windows 7. RE: Form validation required not firing - qury - 05-09-2018 Hi, I've fixed this up for you. The files are in a directory structure, so you should be able to copy them to their correct place. whaterwherisyour.domain/index.php/login_controller/index will display the login form Take a look at the index method in Login_controller.php so next time you will not use includes in your form ![]() Also if you change the "name" tags in your form to lowercase , you have will have to do that in the form validation as well. RE: Form validation required not firing - rachidE - 05-10-2018 (05-09-2018, 12:01 PM)qury Wrote: Hi, I did what you suggested, the problem presists, and in addition when I removed the header and the footer of my login page, the graphic presentation has disappeared. have you tested this at your level ? RE: Form validation required not firing - qury - 05-10-2018 (05-10-2018, 06:09 AM)rachidE Wrote: have you tested this at your level ? have you read my previous reply? I have even attached the fixed controller + view in the zip file and the screenshot of the login screen. Have you tried those files? RE: Form validation required not firing - rachidE - 05-10-2018 (05-10-2018, 06:22 AM)qury Wrote:(05-10-2018, 06:09 AM)rachidE Wrote: have you tested this at your level ? yes I saw your answer, and I applied exactly what you asked me, even for the url. RE: Form validation required not firing - rachidE - 05-10-2018 (05-10-2018, 06:57 AM)rachidE Wrote:(05-10-2018, 06:22 AM)qury Wrote:(05-10-2018, 06:09 AM)rachidE Wrote: have you tested this at your level ? and this is the entire application (view attachment) RE: Form validation required not firing - qury - 05-10-2018 - you load session, but the session save path is set to NULL. - your file names are all over the place, the controller file should begin with a capital letter (Login_controller.php instead of login_controller.php) - in application/config/config.php set the following $config['index_page]='index.php'; (currently this is blank, but maybe you have a redirect) I recommend reading the style guide section of the guide. Also maybe a using a linux platform for development ![]() RE: Form validation required not firing - rachidE - 05-11-2018 (05-10-2018, 12:58 PM)qury Wrote: - you load session, but the session save path is set to NULL. I did everything you asked me but it still does not work. thank you. |