Hello I need your help
I have form_input at my controller like this,
//getting datas from database I need to make edit form
$datas = $this->getvaluesitebyid($this->input->get('stid', TRUE));
$data['siteid'] = array(
'name' => 'siteid',
'type' => 'text',
'class' => 'form-control',
'placeholder' => 'Site ID',
'value' => $datas['site_id_tlp'],
'id' => 'disabledInput',
'disabled' => '' //I set this form to be disabled
);
and at my view I open the form
<?php echo form_input($siteid); ?>
the form is going disabled, but why if I submitting I'm getting empty value? I was give form_validation before I submitting into database. but that form goes invalid because the value is empty
this is my rules
$this->form_validation->set_rules('siteid', 'Site ID', 'trim|required|max_length[100]');
Please help me, thanks