[Resolvido] checkBox
Glaera como eu posso pegar o id ou valor dos checks box marcados em uma pagina?
meu codigo eu coloquei assim
<div id="conteudo">
<div id="tabelabanner">
<form metohd="post" action="<?php echo $this->url(array('action' => 'admdivbanner')); ?>" >
<table>
<tr>
<th>id </th>
<th>Banner </th>
<th>nome </th>
<th>selecione </th>
<th> </th>
</tr>
<?php foreach ($this->banner as $banner) : ?>
<tr>
<td><?php echo $this->escape($banner->id); ?></td>
<td>
<?php
echo'<img src="';
echo $this->baseUrl('receba/' . $this->escape($banner->nomeimagem));
echo'" width="50" higth="50"/></a>'
?>
</td>
<td><?php echo $this->escape($banner->nome); ?></td>
<td>
<input name="banners[]" type="checkbox" value="<?php echo $this->escape($banner->id); ?>"><br>
</td>
</tr>
<?php endforeach; ?>
</table>
<input type="submit" name="" value="alterar" >
</form>
</div>
</div>
como eu posso pegar os marcados?
Discussão (1)
Carregando comentários...