Vote count:
0
I try to create Update Form with form helper CI. everything Work if on form_input. But, when id on form_hidden, it return NULL. this the script on View
$hidden = array('name'=>'id_hidden','value'=>$datacompany[0]->id);
echo form_input($hidden);
On Controller
function edit_company()
{
if(isset($_POST['EDIT']))
{
print_r($_POST);//return All value
$isi = array(
'id' =>$this->input->post('id_hidden'),//return null
'nip' =>$this->input->post('nip'),//return value
'nama' =>$this->input->post('nama'), //return value
'golongan' =>$this->input->post('golongan') //return value
);
echo $isi['id']; //the result id is null
}//end if
}//end Function
That Id I need for using on model. How Can I Fix That? How to Catch ID from form_hidden?
I'm very appreciated Your Answer
thanks
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire