0
In the code below, how do I get the values of input
IdObra
and IdCliente
and go through the url <a href="<?=base_url("/index.php/ProdutosObras")?>"
? I’m using a modal.
<div class="tab-content">
<div id="geraisObras" class="tab-pane fade in active">
<br>
<div class="form-group">
<input type="hidden" type="text" class="form-control" id="idObra" name="idObra" value="idObra">
</div>
<div class="form-group">
<input type="hidden" type="text" class="form-control" id="clienteObra" name="clienteObra" value="clienteObra">
</div>
<div class="form-group">
<label for="nomeObra">Nome Obra</label>
<input type="text" class="form-control" id="nomeObra" autofocus name="nomeObra">
</div>
<div class="form-group">
<label for="valorObra">Valor Obra</label>
<input type="text" class="form-control" id="valorObra" name="valorObra">
</div>
<div class="form-group">
<label for="tipoObra">Tipo Obra</label>
<input type="text" class="form-control" id="tipoObra" name="tipoObra">
</div>
<div class="form-group">
<label>Status Obra</label>
<select class="form-control" name="statusObra" id="statusObra">
<option value="Em andamento">Em andamento</option>
<option value="Finalizada">Finalizada</option>
<option value="Parada">Parada</option>
</select>
</div>
</div>
<br><br>
<div id="clienteObras" class="tab-pane fade">
<?php
echo "<div class='form-group' type='hidden'>";
echo "<label hidden>Cliente</label>";
echo "<select class='form-control' name='clienteObra' id='clienteObra'>";
foreach ($clientes as $cliente):
{
echo "<option value='$cliente[id_cliente]'>$cliente[nomeCliente]</option>";
}
endforeach;
echo "</select>";
echo "</div>";
?>
</div>
<div id="produtosObras" class="tab-pane fade">
<a href="<?=base_url("/index.php/ProdutosObras")?>" class="button" target="_blank">Adicionar Produtos</a>
</div>
Because the guy from the 'Idobra' camp is Idden ?
– David Santos