Welcome Guest, Not a member yet? Register   Sign In
Multi form question
#2

[eluser]GSV Sleeper Service[/eluser]
yeah, you can just redirect() from one controller to another.
I've recently done something similar, but my registration process steps were different methods in the same controller. (different controllers for each step seems overly complicated to me...) example below
Code:
class Registration extends MY_Controller {

    function index(){
        $this->stage1();
    }

    function stage1(){
        //display part 1 form

        //run validation
        //is it valid?
        redirect('registration/stage2');
    }

    function stage2(){
        //display part 2 form
        //run validation
        //is it valid?
        redirect('registration/stage3')
    }

    ...
}


Messages In This Thread
Multi form question - by El Forum - 11-28-2008, 08:45 AM
Multi form question - by El Forum - 11-28-2008, 09:17 AM
Multi form question - by El Forum - 12-01-2008, 01:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB