Bonjour,

Je réalise un tableau avec des cases a cocher et je recupere cette selection dans la page suivante !
Mais je recupe donc le numero de "i" qui a été incrémenté. Je préfére recupéré l'ID qui est dans ma table ou son nom à la limite !
Comment puis je faire ??

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
41
42
43
44
45
46
47
48
49
function gpoint_recap_general(){
$requete="select * from gpoint_departement order by id_departement asc;";
$r=mysql_query($requete);
$nb=mysql_num_rows($r);
echo "<form name='formulaire'1' method='POST' action='modules.php?name=GPOINT&func=gpoint_recap_general_personne'>";
echo "<div align='center'>";
echo "[<a href='modules.php?name=GPOINT'>RETOUR</a>]";
echo "<br /><br />";
 
echo "<table cellspacing='1' width='60%'>";
echo "<tr  bgcolor='#B0C4DE' ALIGN='center' valign='middle'  >";
 
echo "<td >";
echo "<h6>Lettre</h6>";
echo "</td>";
 
echo "<td>";
echo "<h6>Descriptif</h6>";
echo "</td>";
 
echo "<td>";
echo "<h6>Voir</h6>";
echo "</td>";
 
echo "</tr>";	
for($i1=0;$i1<$nb;$i1++){
	$lettre=mysql_result($r,$i1,"lettre_departement");
	$descriptif=mysql_result($r,$i1,"descriptif_departement");
 
	if($couleur==1){echo "<tr bgcolor='#DDDDDD' ALIGN='center'>";$couleur=0;}
	else{echo "<tr bgcolor='#FFEBCD' ALIGN='center'>";$couleur=1;}
	echo "<td>";
	echo "$lettre";
	echo "</td>";
 
	echo "<td>";
	echo "$descriptif";
	echo "</td>";
 
	echo "<td>";
	echo "<input type='checkbox' name='suite1[]' value=$i1>$i1";
	echo "</td>";
	echo "</tr>";
	}
echo "</table>";
echo "<input type='submit' name='submit1' value='Suite'>";
echo "</div>";	
echo "</form>";	
}