0
I have an html form, and in it I have an input checkbox, I need to send the value of that checkbox independent if it is selected or not, if it has selected send 1 if it has not sent 0. So when it is not selected it does not send anything, No argument, just some argument. the url when I mark the checkbox. Someone knows how to send the value of the checkbox not marked by the url?
<form method="get" action="paginadestino">
<table class="tabelas" id="tabelaUsuarios2" bordercolor=green align="center" border="1px solid #ddd">
<tr id="linhaParaClone" style="display:none">
<td>
<input type="text" id="usuario" name="usuario" style="width:120px" maxlength="20" required>
</td>
<td>
<input type="text" name="senha" style="width:95px" maxlength="20" required>
</td>
<td>
<input type="text" name="tag" style="width:80px" maxlength="8" required>
</td>
<td style="display:none">
<input type="text" name="permissoes" style="width:80px" value="0-0-0-0-0" required>
</td>
<td>
<input type="time" name="hrentrada" style="width:80px" maxlength="4" required>
</td>
<td>
<input type="time" name="hrsaida" style="width:80px" maxlength="4" required>
</td>
<td>
<input type="checkbox" name="adm">
</td>
<td>
<button type="button" name="mais" onclick="clonarLinha()">+</button>
<button type="button" name="menos" onclick="removeLinha(this)">-</button>
</td>
<td></td>
</tr>
</table>
</form>
Could you explain it better? Is the value of the checkbox always 1? If it is always the same value, it makes no sense to send it in Ubmit, just put the value 1 for the variable that represents the checkbox. Or even more, it doesn’t even make sense to have checkbox on the form.
– Sam