With form_validation class, always jump to index function! - 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: With form_validation class, always jump to index function! (/showthread.php?tid=41744) |
With form_validation class, always jump to index function! - El Forum - 05-16-2011 [eluser]Unknown[/eluser] Hi!I am a dummy to web programming. In the following controller test.php, I have a function called register which loads a register_view page. After submiting username, password, email, the form is posted to test/create_user. However,when I'm going to debug this fragment, I find that with form_validation class, test/create_user always leads me to the index of test. Although there are echo upon success of failure of form_validation, there's never message print. Code: function register() To be precise, I took fragment out of controller login.php, and tested it in test.php. I made it months ago. It worked well with form_validation at that time. But this time, teammate gave me her final version of web design, good luck ends! I'm very confused now. Never met situation like this. |