form validation help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: form validation help (/showthread.php?tid=26168) |
form validation help - El Forum - 01-07-2010 [eluser]dadamssg[/eluser] I'm going through the users guide tutorial over form validation but i wanted to add my own form validation. First of all, does the form validation code go inside the controller? second what am i doing wrong here? I just want to check to see if the username of the field was entered as Bob...if not reload the page, if so go to google. Heres my controller script Code: <?php form validation help - El Forum - 01-07-2010 [eluser]flaky[/eluser] yes the form validation code goes inside the controller and don't use $_POST it isn't very secure use Code: $this->input->post('username'); form validation help - El Forum - 01-07-2010 [eluser]WebsiteDuck[/eluser] This is not an example of form validation, you can do this without the library. |