views:

44

answers:

1

I am using CodeIgniter. I have been trying to debug a non-working script.

I have come to the conclusion that when utilizing $this->form_validation->run(); (the form validation class), after the first named call, e.g $this->form_validation->run(form_1);, all following calls return true.

I am developing a multi step form and when $this->form_validation->run(form_1); correctly returns true, $this->form_validation->run(form_2); incorrectly returns true.

Anyone have any clue as to why? Can multiple calls not be held in a single function within a controller or is there a special approach? Cheers

A: 

pls check if you have pass argument (form1) and (form2) in your set_rules() function.....and if it's ok then make yourself 1st form_validation call return FALSE, then see if the 2nd call to form_validation is still returning TRUE.

Tejas1810
If i make the first form return false, the second form returns nothing (which i assume is false). I have seen numerous posts on the CI forum showing similar problems - is this simply not possible?
Thomas Clowes