le 13/05/2004 à 18:02
extraire la valeur sélectionné d'un champs type ENUM
Ben y a rien de plus qui s'affiche après cet echo et ce print...
<?php
echo '<BR><BR><select name="Format_Film" SIZE="1">';
echo $tableau['Format_Film'];
print_r($tableau);
// La boucle
for($i=0;$i < count($tableau) ; $i++)
{
$selected = ($tableau[$i] == $tableau['Format_Film']) ? ('selected') : ('');
echo' <option value="'.$tableau[$i].'" '.$selected.'>'.$tableau[$i].'</option>';
}
echo '</select>';
php ?>
