1
I have a list, where by line I will mark the radio button stating: HAS, DOES NOT, BROKEN.
How do I do and what is the correct way to send this to BD Mysql for later on the edit screen capture?
Remembering that these
<tr>
will be in a php foreach for listingsHow to send to the database to then reuse on the edit screen.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<div class="row">
<table>
<thead>
<tr>
<th>NOME</th>
<th>TEM</th>
<th>NÃO TEM</th>
<th>AVARIADO</th>
</tr>
</thead>
<tbody>
<tr>
<td>Documento</td>
<td><label><input name="group[]" type="radio" checked /><span></span></label></td>
<td><label><input name="group[]" type="radio" /><span></span></label></td>
<td><label><input name="group[]" type="radio" /><span></span></label></td>
</tr>
<tr>
<td>Manual</td>
<td><label><input name="group[]" type="radio" checked /><span></span></label></td>
<td><label><input name="group[]" type="radio" /><span></span></label></td>
<td><label><input name="group[]" type="radio" /><span></span></label></td>
</tr>
<tr>
<td>Vidro</td>
<td><label><input name="group[]" type="radio" checked /><span></span></label></td>
<td><label><input name="group[]" type="radio" /><span></span></label></td>
<td><label><input name="group[]" type="radio" /><span></span></label></td>
</tr>
</tbody>
</table>
</div>
It’s not missing to put this in a
<form>
to be sent after one click on a button for example?– Thiago Krempser
Hello Thiago, here I have the
<form>
, but in this post makes no difference. Note that I can only score 1 in total radio. Where the right would be to score 1 per line.– Tiago
This isn’t about the
name=group[]
?– Breno
Not because I have to send everything to the same comic book table
– Tiago
If you have the same name you are in the same group.
– Augusto Vasques
But you must capture separately. Look here: https://codepen.io/anon/pen/OYgajB
– Breno