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
|
<tr>
<td class="right-label" style="width: 100px; font-weight: bold;" nowrap>Constructeur *</td>
<td colspan=3 class="left-label" nowrap>
<select name=id_constructeur onchange="decision(this.selectedIndex);">
<option value="">------</option>
<?
connexion();
$requete = mysql_query( "select id_constructeur ,nom from constructeur2 order by nom" );
while( $resultat=mysql_fetch_array($requete) ) {
print "<option value=$resultat[0] ";
if($_POST[id_constructeur] == $resultat[0]) { print "selected"; }
print ">$resultat[1]</option>\n";
}
deconnexion();
?>
</select>
</td>
</tr>
<tr><td colspan=2 style="font-size: 5;"><br></td></tr>
<tr>
<td class="right-label" style="width: 100px; font-weight: bold;" nowrap>Modele *</td>
<td colspan=3 class="left-label" nowrap>
<select name=id_modele onchange="decision(this.selectedIndex);">
<option value="">------</option>
<?
connexion();
$requete = mysql_query( "select id_modele ,nom_modele,id_constructeur from modele2 where id_constructeur ='$_POST[id_constructeur]'");
while( $resultat=mysql_fetch_array($requete) ) {
print "<option value=$resultat[0] ";
if($_POST[id_modele] == $resultat[0]) { print "selected"; }
print ">$resultat[1]</option>\n";
}
deconnexion();
?>
</select>
</td>
</tr> |
Partager