Bonjour a tous!
J'ai un gro saisie.
J'effectue une boucle pour afficher les resultats d'une requete SQL sous forme de tableau. Les trois premieres colonnes de chaque ligne comportent des boutons de soumission de formulaire. Les formulaires incluant des champs de type hidden. Le probleme c qu'a chaque interation d'affichage (j 'affiche le tableau ligne par ligne à l'aide d'une boucle) j'ai un retour a la ligne a chaque interation et d'apres les test que j'ai effectué cela viens des champs de type hidden, lorsque je les enleve le probleme disparait.
Voivi mon code: Help me please!![]()
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 <table border="1"> <?php do { ?> <tr> <td><input type="button" name="Submit" value="Modifier" ></td> <form action="../../deletecandidat.php" method="post" name="formsupp" target="_self" clear:both;> <input type='hidden' name='codeCandidat' value= "<?php echo $row_Recordset1['CODECANDIDAT'];?>"> <input type='hidden' name='nomCV' value= "<?php echo $row_Recordset1['CVCANDIDAT'];?>"> <input type='hidden' name='num' value= '1'> <input type='hidden' name='source' value='2'> <td><input name="Supprimer" type="submit" id="Supprimer" value="Supprimer"></td> </form> <form action="../../detailcandidat.php" method="post" name="formdetail" target="_self"> <input type='hidden' name='codeCandidat' value= "<?php echo $row_Recordset1['CODECANDIDAT']; ?>"> <input type='hidden' name='num' value= '1'> <input type='hidden' name='id' value= '-1'> <input type='hidden' name='source' value='2'> <td><input name="Detail" type="submit" id="Detail" value="Detail"></td> </form> <td><?php echo $row_Recordset1['NOMCANDIDAT']; ?></td> <td><?php echo $row_Recordset1['PRENOMCANDIDAT']; ?></td> <td><?php echo $row_Recordset1['LANGUECANDIDAT']; ?></td> <td><?php echo $row_Recordset1['DATECANDIDATURE']; ?></td> </tr> <?php } while($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </table>
Partager