Bonjour,
L'objectif est d'écrir le 2ème script pour récupérer les données formulaire et rentre dans la base. Pouvez vous l'indiquer comment faire pour mon 2eme script? merci!!
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 $req="SELECT * FROM identification"; $res=mysql_query($req); echo "<FORM action=\"exo9.php\" method=\"POST\"> <SELECT name=\"nom\">"; while($ligne=mysql_fetch_object($res)) {echo "<OPTION value=\"$ligne->nom\" />$ligne->nom $ligne->prenom";} echo "</SELECT></FORM>\n<p>"; echo "<FORM action=\"exo9.php\" method=\"POST\">"; $reqforma="SELECT * FROM formations"; $resforma=mysql_query($reqforma); $nb=mysql_num_rows($resforma); for($i=0; $i<$nb; $i++) {$ligne=mysql_fetch_object($resforma); echo "<INPUT type=\"radio\" name=\"formation\" value=\"$ligne->id\" />$ligne->intitule";} echo" <INPUT type=\"submit\" value=\"Envoyer\" />"; echo "</FORM>";
		
		
        




   


  Répondre avec citation
Partager