Form Validation Run returning true every time - 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 Run returning true every time (/showthread.php?tid=61156) |
Form Validation Run returning true every time - El Forum - 10-02-2014 [eluser]Apidcloud[/eluser] Good evening, I've been trying to create a simple form, but the validation isn't working as expected. Here's the form code: Code: <?php And below's the controller, containing the submit function: Code: public function send_email() Every time I click on the submit button, it goes to success page even though I didn't fill up anything in the form. I believe that field names are correct, so I really don't understand what's causing this issue. As a probably related note, I'm using a htaccess file to remove the index.php from the url, along with some routes: Code: $route['about'] = 'welcome/about'; Besides, I'm using partial views, so this form is actually placed inside one, called footer. I've read this thread(http://stackoverflow.com/questions/9126114/codeigniter-form-showing-validation-error-of-a-view-within-another-view) which seems to present a similar problem, but couldn't solve it thus far. Any thoughts? Sincerely, Apidcloud Form Validation Run returning true every time - El Forum - 10-02-2014 [eluser]Apidcloud[/eluser] Omg. I was setting the property value for each input type..hence returning true all the type. Damn, wasted around 2 or 3 hours. Thanks anyway |