Je viens de m'apercevoir que sur l'un de mes sites, la liste déroulante de l'une des pages ne déroule pas du tout, sous NETSCAPE, alors qu'il n'existe pas de problème sous IE, FIREFOX et OPERA.
j'affiche la liste de cette manière:
CODE
afficher_colonne ("select libelle from marque order by libelle", "marque", "libelle", "Marques","none");
Qui appelle cette fonction en cours de modif:
CODE
function afficher_colonne ($sql, $name, $champ, $bouton, $cle)
{
$result1 = mysql_query($sql);
print "<div style=\"text-align: center;margin-top: 20px;\"><form method=\"POST\" action=\"affich_tab.php\"><br>";
print "<select name=". $name ." onchange=submit()>";
while ($i = mysql_fetch_array($result1))
{
$champ_aff = $i[$champ];
$i[$champ] = str_replace('&', '%26',$i[$champ]);
$i[$champ] = stripslashes(htmlentities($i[$champ],ENT_QUOTES));
if ($cle != "none")
print"<option value='$i[$champ],$i[$cle]'>". $champ_aff ."</option>\n";
else
print"<option value='$i[$champ]'>". $champ_aff ."</option>\n";
}
print "</select><br>";
print "<input style=\"margin-top: 15px;color:#FF9900;background-color:#000000;\" type=\"submit\" value='$bouton'>";
print "</form></div>";
}
{
$result1 = mysql_query($sql);
print "<div style=\"text-align: center;margin-top: 20px;\"><form method=\"POST\" action=\"affich_tab.php\"><br>";
print "<select name=". $name ." onchange=submit()>";
while ($i = mysql_fetch_array($result1))
{
$champ_aff = $i[$champ];
$i[$champ] = str_replace('&', '%26',$i[$champ]);
$i[$champ] = stripslashes(htmlentities($i[$champ],ENT_QUOTES));
if ($cle != "none")
print"<option value='$i[$champ],$i[$cle]'>". $champ_aff ."</option>\n";
else
print"<option value='$i[$champ]'>". $champ_aff ."</option>\n";
}
print "</select><br>";
print "<input style=\"margin-top: 15px;color:#FF9900;background-color:#000000;\" type=\"submit\" value='$bouton'>";
print "</form></div>";
}
Quelqu'un voit-il une boulette quelque part ?
xpatval