ion-Auth codeigniter多页面注册表单

时间:2015-04-07 10:47:06

标签: codeigniter ion-auth

我想使用Ion-Auth创建一个注册表单,但似乎找不到任何特定的教程。创建表单后,我希望表单是一个多页/多步表单,它将数据存储在会话中并传递给下一个函数,提交将在最后一步进行。

执行类似下面的操作,唯一的区别是来自前一个表单的数据将使用会话传递给下一个函数,我不知道如何使用会话进行传递,提交将在最后一步进行:

    public function submit (){

    if ($this->input->post('submit-1')) //Use unique names for each submit 
    button value on the forms

    {

    //validate and save form data to database


    $this->load->view('author/submit_step2');

    }

    elseif ($this->input->post('submit-2'))

    {

    //validate and save form data to database

    $this->load->view ('author/submit_step3');

    }


    {

    //validate and save form data to database


    $this->load->view('author/success');

    }

    else

    {

    $this->load->view('author/submit_step1');

0 个答案:

没有答案
相关问题