1
I want the user to be able to see the data you entered in your log when loading the data update page. I can see the data that is in type=text but not in type=radio.
View:
<?php foreach ($resultados_pesquisa as $linha) {
$nome = $linha["NOME"];
$genero $linha["GENERO"];
?>
<form class="form-horizontal" action="<?php echo site_url('Menu');?>" method="post" accept-charset="utf-8">
<h3>Dados pessoais</h3>
<!-- Nome -->
<div class="form-group">
<label for="inputName" class="col-sm-2 control-label">Nome</label>
<input type="text" name="nome" value="<?php echo $nome ?>" class="form-control" id="inputName" placeholder="Nome">
</div>
<!-- Genero -->
<div class="form-group">
<label for="inputGenero" class="col-sm-2 control-label">Genero</label>
<label id="masculino">
<input type="radio" name="genero" value="masculino">Masculino
</label>
<label id="feminino">
<input type="radio" name="genero" value="feminino">Feminino
</label>
</div>
</form>
<?php } ?>
It didn’t work, but I figured it out. Thank you
– Rafael