How do I insert the value of <input>
into the database as the radio button is selected?
A template is attached:
$funcionario=$this->funcionario->get_all_funcionario();if($funcionario->num_rows>0){$row=$funcionario->row();$atributosfuncionario=array('name'=>'xd','class'=>'funcionario','value'=>$row->pessoa_id);echoform_radio($atributosfuncionario);echoform_label('Funcionário');echoform_input(array('name'=>'pessoa','class'=>'selects','disabled'=>'disabled'),set_value('pesssoa',$row->nome));}$atributoscidadao=array('name'=>'xd','class'=>'cidadao');echoform_radio($atributoscidadao);echoform_label('Cidadão');echo'<selectname="pessoa" class="select">';
$opcao = $this->funcionario->get_all_pessoa()->result();
foreach($opcao as $linha){
echo '<option value="'.$linha->id.'">'.$linha->nome.'</option>';
}
echo '</select>';
When I register, it is only getting the value of <option>
Mário Silva, or any other value of <option>
. Why can not I get the value in the input text? mark the radio button, and even then it continues! Does anyone know what it can be?