J'ai deux listes déroulantes et j'aimerais bien que la deuxième se remplisse en fonction de la seconde mais je ne vois pas comment faire :

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
	<tr>
	<td align="right"><strong>Rubrique :</strong> </td>
	<td align="left">
	<select>
	<option>---</option>
	<?
	$sqlrubrique = 'SELECT DISTINCT * FROM rubrique ORDER BY nom_rubrique';
	$rubrique = mysql_query($sqlrubrique);
		while($rubrique_array = mysql_fetch_array($rubrique)) {
			?>
			<option value="<? echo $rubrique_array['ID_rubrique'];?>">
			<?
			echo $rubrique_array['nom_rubrique'];
			?>
			</option><br>
			<?
			}
	?>
	</select>
	</td>
	</tr>
    <tr>
	<tr>
	<td align="right"><strong>Détail rubrique :</strong> </td>
	<td align="left">
	<select name="iddetailrubrique">
	<option>---</option>
	<?
	$sqldetailrubrique = 'SELECT DISTINCT * FROM detailrubrique ORDER BY nom_detailrubrique';
	$detailrubrique = mysql_query($sqldetailrubrique);
		while($detailrubrique_array = mysql_fetch_array($detailrubrique)) {
			?>
			<option value="<? echo $detailrubrique_array['ID_detailrubrique'];?>">
			<?
			echo $detailrubrique_array['nom_detailrubrique'];
			?>
			</option><br>
			<?
			}
	?>
	</select>
	</td>
	</tr>