Welcome Guest, Not a member yet? Register   Sign In
Pre-populated inputs and validation
#7

[eluser]BravoAlpha[/eluser]
I'm using something like this right now:
Code:
<?php

class User extends Comtroller {

    function edit()
    {
        // whatever
        
        if ($this->validation->run())
        {
            // whatever
            redirect('wherever');
        }
        else if (!$this->input->post('submit'))
        {
            foreach($query[0] as $key => $value)
                $this->validation->$key = $value;
        }
        
        // whatever
        $this->load->view('whatever', $data);
    }

}

?>


Messages In This Thread
Pre-populated inputs and validation - by El Forum - 08-14-2007, 06:32 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 09:31 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 09:37 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 09:45 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 10:06 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 03:25 PM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 04:28 PM
Pre-populated inputs and validation - by El Forum - 08-17-2007, 09:29 AM
Pre-populated inputs and validation - by El Forum - 08-18-2007, 05:05 PM
Pre-populated inputs and validation - by El Forum - 10-20-2007, 12:03 PM
Pre-populated inputs and validation - by El Forum - 10-22-2007, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB