Récupérer des données

Fermé
luc - 4 mai 2017 à 08:22
jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 - 4 mai 2017 à 09:48
Bonjour,

J'ai un formulaire en forme de tableau avec des checkbox et je veux récupérer les checkbox cochés mais le problème est que j'ai tout essayé sans réussir...
<table class="tg">
<tr>
<th class="tg-031e">Horaires</th>
<th class="tg-031e">Lundi</th>
<th class="tg-031e">Mardi</th>
<th class="tg-031e">Mercredi</th>
<th class="tg-031e">Jeudi</th>
<th class="tg-yw4l">Vendredi</th>
</tr>
<tr>
<td class="tg-031e">H1</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH1"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH1"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH1"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH1"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH1"></td>
</tr>
<tr>
<td class="tg-yw4l">H2</td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="LH2"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="MH2"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="MeH2"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="JH2"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH2"></td>
</tr>
<tr>
<td class="tg-031e">H3</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH3"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH3"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH3"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH3"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH3"></td>
</tr>
<tr>
<td class="tg-031e">H4</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH4"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH4"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH4"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH4"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH4"></td>
</tr>
<tr>
<td class="tg-031e">M1/H5</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH5"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH5"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH5"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH5"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH5"></td>
</tr>
<tr>
<td class="tg-031e">M2/H6</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH6"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH6"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH6"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH6"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH6"></td>
</tr>
<tr>
<td class="tg-yw4l">H7</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH7"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH7"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH7"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH7"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH7"></td>
</tr>
<tr>
<td class="tg-yw4l">H8</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH8"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH8"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH8"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH8"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH8"></td>
</tr>
<tr>
<td class="tg-yw4l">H9</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH9"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH9"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH9"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH9"></td>
</tr>
<tr>
<td class="tg-yw4l">H10</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH10"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH10"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH10"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH10"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH10"></td>
</tr>
<tr>
<td class="tg-yw4l">S1/H11</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH11"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH11"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH11"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH11"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH11"></td>
</tr>
<tr>
<td class="tg-yw4l">S2/H12</td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="LH12"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MH12"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="MeH12"></td>
<td class="tg-031e"><INPUT type="checkbox" name="choix[]" value="JH12"></td>
<td class="tg-yw4l"><INPUT type="checkbox" name="choix[]" value="VH12"></td>
</tr>
</table>
<input class="btn" name="Connexion" value=" VALIDER " type="submit">
</form>';

1 réponse

jordane45 Messages postés 38145 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 25 avril 2024 4 650
4 mai 2017 à 09:48
Bonjour
Peux tu noud montrer le debut de ta balise form ainsi que ton code php ?
0