Bonjour;
voici mon problème : j'affiche un tableau et pour chaque ligne il y a une checkbox; je voudrais récupérer les id des cases coché dans une liste
mais je ne sais pas comment faire ça.
J'ai ce code mais ne fonctionne pas .
Voila le code :
svp y a qlql peut me répondre.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <?php $link = "<a class='resultat' class='row' title='Consulter' href='#' onclick=show_detail(" . $searchresult[$index - $start + 1][4] . ")>"; $F=$searchresult[$index - $start + 1][4]; echo "<tr style='text-align:left' class='resultat' height=22px valign=middle class='even' onmouseover=this.className='surbrillance' onmouseout=this.className='even'>"; echo "<form name='selection' action='sauve.php?T=$F' method='post'> "; echo "<td $rs> <input type='checkbox' name='selection[]' value='".$searchresult[$index - $start + 1][4]."'></a></td>"; echo "<td $rs>" . $index. "</a></td>"; echo "<td $rs>" . $link . $searchresult[$index - $start + 1][1] . "</a></td>"; echo "<td $rs>" . $link . $searchresult[$index - $start + 1][2] . "</a></td>"; echo "<td $rs>" . $link . $searchresult[$index - $start + 1][3] . "</a></td>"; echo "</tr>"; ?> <input name='word' border=0 type="submit" value="Sauvegarder" style="font:8pt verdana;"> <input name='clear' border=0 type=button value='Imprimer' style='font:8pt verdana;' onclick= 'javascript:window.print()'> </form>
Merci d'avance.
Partager