Welcome Guest, Not a member yet? Register   Sign In
Loading the form and validating in the same function?
#10

[eluser]mattpointblank[/eluser]
Doh, just realised what was wrong. In your controller, you're defining your validation rules AFTER checking to see if it passed them! It'll never pass!

Move all your $this->form_validation->set_rules() calls to before checking if ($this->form_validation->run())


Messages In This Thread
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 08:40 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 08:45 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 08:57 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:05 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:09 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:10 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:45 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 10:18 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 10:42 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 11:40 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 11:58 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 04:26 PM
Loading the form and validating in the same function? - by El Forum - 04-30-2010, 12:50 AM
Loading the form and validating in the same function? - by El Forum - 04-30-2010, 03:32 PM
Loading the form and validating in the same function? - by El Forum - 04-30-2010, 10:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB