![]() |
Validation problems - 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: Validation problems (/showthread.php?tid=7127) |
Validation problems - El Forum - 03-25-2008 [eluser]Philip Pryce[/eluser] Well in this thread i just want to ask if i was trying to get a user to return to a form after validating their input wrong, if i just referenced the page function instead of just re-writing it again, is this technically the right way to do it? For example, say i have these two functions in a Controller called User Code: function signin ($error=false, $errormsg='') { Thanks. Validation problems - El Forum - 03-26-2008 [eluser]Glen Swinfield[/eluser] It's no problem doing it that way, just remember that the $_POST data still exists so a 'refresh' would re-submit the data. If this is not going to be a problem then it's fine. Also use 'return' instead of 'die()'. |