Welcome Guest, Not a member yet? Register   Sign In
cannot send hidden fields to the controller
#3

[eluser]dinisptc[/eluser]
Code:
Array ( [titulo] => asddqwfqw [descricao] => cccccccccc [referencia] => eee [nome_empresa] => cccccc [local_de_trabalho] => dghdgh [email] => [email protected] [submit] => Insert New Job )



i did print_r($this->input->post()); and the values are not there

i am going to show the model
but i think the problem is in the form

Code:
function add($data) {
        $result = false;
    $new_data=array(
     'identidade'=>$data['identidade'],
     'titulo'=>$data['titulo'],
     'descricao'=>$data['descricao'],
     'referencia'=>$data['referencia'],
     'data_criacao'=>$data['data_criacao'],
     'nome_empresa'=>$data['nome_empresa'],
     'email'=>$data['email'],
     'local_de_trabalho'=>$data['local_de_trabalho']);
        $this->db->set($new_data);
        $this->db->insert('empregos');

        if ($this->db->affected_rows() > 0) {
            $result = $this->db->insert_id();
        }
        return $result;
    }


Messages In This Thread
cannot send hidden fields to the controller - by El Forum - 10-18-2012, 11:16 AM
cannot send hidden fields to the controller - by El Forum - 10-18-2012, 11:49 AM
cannot send hidden fields to the controller - by El Forum - 10-18-2012, 12:02 PM
cannot send hidden fields to the controller - by El Forum - 10-18-2012, 12:38 PM
cannot send hidden fields to the controller - by El Forum - 10-19-2012, 05:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB