Form validation callback not working! - 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 callback not working! (/showthread.php?tid=32939) |
Form validation callback not working! - El Forum - 08-10-2010 [eluser]gedev2006[/eluser] Hi Can anyone see why the callback function in my form validation (process() function) is not working? The function is just not getting called (validate_username()) It was working...then all of a sudden it doesn't! Code: <?php Form validation callback not working! - El Forum - 08-10-2010 [eluser]gedev2006[/eluser] hmm...it started to work again! Form validation callback not working! - El Forum - 08-10-2010 [eluser]intractve[/eluser] I didn't see anything stand out except that according to CI convention (not strict) Boolean operators are in uppercase. But I do not think that can be causing any of this. Form validation callback not working! - El Forum - 10-14-2010 [eluser]Deep Arora[/eluser] [quote author="gedev2006" date="1281460770"]hmm...it started to work again![/quote] Any hints how it started working ? I am facing the same issue..callback function suddenly stopped working.. Form validation callback not working! - El Forum - 10-15-2010 [eluser]CroNiX[/eluser] Out of curiousity, why are you checking to see if the username is not false? Do you actually set it to boolean FALSE somewhere? Like if they aren't logged in or something? Maybe checking to see if its empty() would be better. Code: if ( $user = $this->musers->single ( $username ) != false ) Code: if( ! empty($this->musers->single ( $username ))) |