Bonjour,
je suis devant un casse tête : j'ai un formulaire avec plusieurs champs à remplir et plusieurs "select" et je ne comprends pas pourquoi, lorsque je valide mon formulaire, je ne récupère que certains "sélect", alors qu'ils ont strictement la même syntaxe. Je bloque, si quelqu'un a une idée.
Voici un bout de mon formulaire : (je récupère sans pb les infos chantier, ral et produit mais aucunement le nom du client !!!!)
Merci par avance.
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 <form name="creation_dossier" action="enregistrer_dossier.php" method="post"> <label>Numéro de dossier : </label><input type="text" name="num"> <br><br> <label>Date d'enregistrement : </label><input type= "datetime" disabled name="date_enreg" value="<?php echo $date_jour; ?>"> <br><br> <label>Client : </label> <select name="nomclient"> <?php $result_client = mysql_query("select denomination, num_client from client order by denomination ASC"); while ($row_client=mysql_fetch_array($result_client)) { echo '<OPTION VALUE="'.$row_client["denomination"].'">'.$row_client["denomination"].'</OPTION>'; } ?> </select> <br> <br> <label>Ref. Chantier : </label><input type="text" name="chantier"> <br> <br> <label>Produit : </label><select name="produit"> <?php $result_produit = mysql_query("select nomproduit from produit"); while ($row_produit=mysql_fetch_array($result_produit)) { echo '<OPTION VALUE="'.$row_produit["nomproduit"].'">'.$row_produit["nomproduit"].'</OPTION>'; } ?> </select> <br> <br> <label>RAL : </label><select name="ral"> <?php $result_ral = mysql_query("select ral from couleur"); while ($row_ral=mysql_fetch_array($result_ral)) { echo '<OPTION VALUE="'.$row_ral["ral"].'">'.$row_ral["ral"].'</OPTION>'; } ?> </select>
Partager