Bonjour,
J’essaie de passer des donées par un formulaire et les afficher sur la page hello5.php et ca ne s’affiche pas… quelqu’un aurait une idée ? ;-)

Formulaire
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
<?php require("brands.php"); 
echo "
<form action=hello5.php method=get>
<select name=collecID>
";
 
$req = mysql_query("select * from brands order by sujets asc");
while($data = mysql_fetch_assoc($req)) {
  echo "<option value=".$data[id].">".$data[sujets]."</option>\r\n";
}
 
.....

page hello5
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
$id = intval($_GET['collecID']) ? intval($_GET['collecID']) : intval($_POST['collecID']);
 
echo " Affichage : ".getSql("select sujets from brands where id=$id")."<br>"; 
?>