Welcome Guest, Not a member yet? Register   Sign In
loading view after form validation
#5

[eluser]Pale Rider[/eluser]
Ok, where does this need to go? I've tried doing

Code:
if($query = $this->order_model->add_order())
            {
                $_POST = array();
                $data['success'] = TRUE;
                $this->load->view('tpl_header');
                $this->load->view('sales_entry_view', $data);
                $this->load->view('tpl_footer');
            } else {

And I've tried doing it within the view when $success is true

Code:
if ($success == TRUE)
    {
         echo "Success!";
        $_POST = array();  
    }

Both instances still result in the input fields being populated with the submitted information.


Messages In This Thread
loading view after form validation - by El Forum - 03-03-2010, 08:28 PM
loading view after form validation - by El Forum - 03-04-2010, 03:12 AM
loading view after form validation - by El Forum - 03-04-2010, 02:12 PM
loading view after form validation - by El Forum - 03-04-2010, 02:36 PM
loading view after form validation - by El Forum - 03-04-2010, 05:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB