Bonjour

Je génère dynamiquement une table selon un requête sql. Code ci dessous.
Je voudrais mettre un bouton qui me récupère la valeur de ma colonne 3 ( par exemple ) si celle ci est sélectionnée.

Avez vous une idée ,
Merci de votre aide.

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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
<table border=1 id="table" cellpadding="10" width="100%">
    <tr>       
        <th id="th">Col1</th>
        <th id="th">Col2</th>
        <th id="th">Col3</th>
        <th id="th">Col4</th>
    </tr>
    <?php
    while ($donnees = $reponse->fetch()) {
                echo "<tr id='rangeeno$count' bgcolor='#dddddd'>";
                        echo "<td align='center'  width='50px' id='td'>";
                echo "<input type='checkbox' id='cocher$count' name='cocher$count' width='50px'>";
                        echo "</td>";
                        
                        echo "<td align='center' width='50px' id='t2td'>";
                echo "<label for='cocher$count'>";
                                        echo $donnees['date_news'];
                                echo "</label>";
            echo "</td>";
                        
                        echo "<td align='center' width='300px' id='t2td'>";
                echo "<label for='cocher$count'>";
                                        echo $donnees['DicomLabel'];
                                echo "</label>";
            echo "</td>";
                        
                        echo "<td align='center' width='150px' id='t2td'>";
                echo "<label for='cocher$count'>";
                                        echo $donnees['AETitleSrc'];
                                echo "</label>";
            echo "</td>";
                        
                        echo "<td align='center' width='150px' id='t2td'>";
                echo "<label for='cocher$count'>";
                                        echo $donnees['AETitleDst'];
                                echo "</label>";
            echo "</td>";               
                        
        ?>