Bonjour à vous,

Voilà, je souhaiterais pouvoir voir les champs après avoir validé ma selection, or lorsque je clique sur mon bouton rien ne se passe.

Voici 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<link rel="stylesheet" href="style.css" type="text/css">
    <head>
		<title>LISTE DES ORDINATEURS</title>
	</head>      
 
	<body>
		<div id="bandeau">
<?php
  include('bandeau.php');
 ?>
	</div>
		<div id="menu">
			<?php include('menu.php');  // Nous appelons l'entete du site
			?>
		</div>
 
<?php
try {
	// On se connecte à MySQL
	$bdd = new PDO('mysql:host=localhost;dbname=parc_informatique', 'root', 'mysqlroot',
	array(PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION));
}
catch(PDOException $e) {
	// En cas d'erreur, on affiche un message et on arrête tout
        die('Erreur : '.$e->getMessage());
}
 
// Si tout va bien, on peut continuer
?>
<br><br>
<div id="texte_corps">
 
 
ORDINATEURS
<br>
<br>
 
 
 
<form method="post" action="<?php echo ($_SERVER['PHP_SELF']); ?>">
      <select name="select_pc">
<?php
try {
   $req = $bdd->query('SELECT * FROM nom_pc order by id');
   while ($row = $req->fetch(PDO::FETCH_ASSOC))
   if (isset($_POST['submit_select'], $_POST['id'], $_POST['pc'])){
	$req = $bdd->query('SELECT * FROM nom_pc
	LEFT JOIN systeme_exploitation
	ON nom_pc.pc_os=systeme_exploitation.id
	LEFT JOIN type_ordinateurs
	ON nom_pc.type_pc=type_ordinateurs.id
	WHERE id = ?');
	$req->execute(array($_POST['id'], $_POST['pc']));
	}
   else
      echo '<option value="',htmlspecialchars($row['id']),'">',htmlspecialchars($row['pc']),'</option>\n'; 
 
}
catch (PDOException $e) {
   echo $e->getMessage();
}
 
 
echo'<p><div align=left><strong><font size="3">' . '- ' . htmlspecialchars($donnees['os']) . '</div>' . '</font>' . '</strong>' . '</p>';
 
?>
 
<input type="submit" name="submit_select" value="Select" />
 
 
</select></form></div>
 
<div id="pied_page"></div>
 
</body>
si une âme charitable à une idée je suis preneur.

Merci par avance.