Below a table in my view, I need to check the column in the checkbox to not send the data to my other page, or check the POST time.
View:
<divclass="large-12 columns" id="tabela" style="overflow-y: scroll; height: 80%; border: 0px solid;">
<div class="TableCSS">
<form method="POST" action="../controller/precontEnviaEmail">
<table>
<thead>
<tr>
<th>Nome</th>
<th>Email</th>
<th>Nº Fatura em atraso</th>
<th>Ação</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" value="teste1" name="nome[]"></td>
<td><input type="text" value="[email protected]" name="email[]"></td>
<td><input type="text" value="666666666" name="fatura[]"></td>
<td><input type="checkbox" value="" name="valida[]"></td>
</tr>
<tr>
<td><input type="text" value="teste2" name="nome[]"></td>
<td><input type="text" value="[email protected]" name="email[]"></td>
<td><input type="text" value="666666666" name="fatura[]"></td>
<td><input type="checkbox" value="" name="valida[]"></td>
</tr>
</tbody>
</table>
</div>
<input type="submit" class="tiny button">
</form>
</div>
Precontroller:
$nome = $_POST['nome'];
$email = $_POST['email'];
$fatura = $_POST['fatura'];
$valida= $_POST['valida'];
//Validação