j'ai fait une extraction de ma SGBD qui me liste un certain nombre de facture pour un client (stockées dans un tableau)
Au bout de chaque ligne de facture, j'ai mis un bouton type radio.
Mais je n'arrive pas à récupérer mes données.
ci-dessous mon code
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 <table > <tr> <th id="label" width="auto">Date</th> <th id="label" width="auto">Type Facture</th> <th id="label" width="auto">N° Facture</th> <th id="label" width="auto">Montant</th> </tr> <form method="post" action="#"/> <?php $choix=array(); for ($i=0;$i<count($donneesSD1);$i++) { ?> <tr > <td id=""><?php echo $donneesSD1[$i]['07_creele'];?></td> <td id=""><?php echo $donneesSD1[$i]['07_libtypefact'];?></td> <td id=""><?php echo $donneesSD1[$i]['07_numfact'];?></td> <td id=""><?php echo $donneesSD1[$i]['07_montantfact'];?></td> <td><input name="choix[<?php echo $i;?>]" type="radio" value="<?php if (isset($_POST[$i]['choix'])){echo "checked='checked'";$choix[$i]=$_POST[$i]['choix'];$ref=$donneesSD1[$i]['07_numfact'];$date=$donneesSD1[$i]['07_creele'];$libtype=$donneesSD1[$i]['07_libtypefact'];$montant=$donneesSD1[$i]['07_montantfact'];}?>"></input></td> </tr> <?php } ?> </table> <input align="right" type="submit" value="OK" name="OK"></input>
Partager