Welcome Guest, Not a member yet? Register   Sign In
Logic for multi-step form.. not working.
#12

[eluser]smilie[/eluser]
Well, beats me Sad

Regarding config, do you mean by that validation rules like:
$this->form_validation->set_rules('something','something','required')

Because, as far as I understand it, it goes like:

Code:
$this->load->helper(array('form', 'url'));        
$this->load->library('form_validation');
$this->form_validation->set_rules('something','something','required')
$this->form_validation->run()

# ... some other code ...

$this->form_validation->set_rules('something2','something2','required')
$this->form_validation->run()

Now, first run() will use set_rules above them.
Once second set_rules() kicks in (gets executed) it will 'automagically' be used for the second run(). Of course, as long as both are separated (for example by if statement or such, so that either one or another get's executed).

Could it be, that your form has same parameters for validation? Let's say, form on page 1 has input field named 'test' and form on second page has also field named 'test'? And that that is what 'disturbs' the validation?

Regards,
Smilie


Messages In This Thread
Logic for multi-step form.. not working. - by El Forum - 09-07-2010, 04:44 PM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 04:14 AM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 09:34 AM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 09:38 AM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 10:35 AM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 11:50 AM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 12:17 PM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 12:29 PM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 12:34 PM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 12:40 PM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 01:07 PM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 01:18 PM
Logic for multi-step form.. not working. - by El Forum - 09-08-2010, 01:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB