Welcome Guest, Not a member yet? Register   Sign In
how to read response values from the form
#1

[eluser]Thea_G[/eluser]
Can someone direct me to an example of how to read the form values on the view page from the controller function where it was submitted?

I used firebug and I can see the values got passed in the http response but how do I stuff them into the $data array I'm trying to build ( so I can update my database).

I want to do something like this:


Code:
$data = array(
                           'firstname' => post('firstname'),
                           'lastname' =>  post('lastname'),
                           'email' =>  post('email')
                    );

$this->db->insert('users', $data);


Messages In This Thread
how to read response values from the form - by El Forum - 01-05-2010, 10:00 PM
how to read response values from the form - by El Forum - 01-05-2010, 10:17 PM
how to read response values from the form - by El Forum - 01-06-2010, 07:11 AM
how to read response values from the form - by El Forum - 01-06-2010, 07:18 AM
how to read response values from the form - by El Forum - 01-06-2010, 07:19 AM
how to read response values from the form - by El Forum - 01-06-2010, 11:53 AM
how to read response values from the form - by El Forum - 01-06-2010, 11:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB