Form validation not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Form validation not working (/showthread.php?tid=68888) |
Form validation not working - jaynarayan - 09-10-2017 PHP Code: //controller PHP Code: //success.php PHP Code: //form I am following the tutorial from the docs , but the form is not displaying. it shows validation is successful every time. try it again link is also not working RE: Form validation not working - donpwinston - 09-18-2017 Try this: Change <input type="submit" value="Submit" /> to <input type="submit" name="submitted" value="Submit" /> and if (! $this->validate([])) to if ($this->request->getPost("submitted") == null || ! $this->validate([])) RE: Form validation not working - jaynarayan - 09-28-2017 The Issue was Fixed in this commit |