Form validation not working |
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
love codeigniter
Learning best practices Rate my post if you found it helpfull
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([]))
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |