Grand débutant en php et html, j'essaie d'afficher (ou rendre inactive) une liste déroulante suivant les valeurs d'une autre liste deroulante. J'ai essayé le code suivant mais sans succès. Je n'ai pas trop d'autres idées.
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
44
45
46
<html>
 
	<head>
		<title>TP4</title>
	<head/>
 
	<body>
 
		<form name="formulaire1" method="post" action="page1.php">
			<table>
				<tr>
					<td>Système:</td>
					<td>
					<SELECT name="Système">
						<OPTION VALUE="RGF93">RGF93</OPTION>
						<OPTION VALUE="ETRS89">ETRS89</OPTION>
						<OPTION VALUE="ITRF05">ITRF05</OPTION>
					</SELECT>
					</td>
					<td>Type:</td>
					<td>
					<SELECT name="Type">
						<OPTION VALUE="cartesiennes">Cartesiennes</OPTION>
						<OPTION VALUE="geographiques">Geographiques</OPTION>
					</SELECT>
					</td>
					<td>Unité:</td>
					<td>
					<?php
					if ($_POST[Type]=='geographiques'){
						<SELECT name="Unité">
							<OPTION VALUE="degrés">degrés</OPTION>
							<OPTION VALUE="degmin">degrés minutes</OPTION>
							<OPTION VALUE="degminsec">degrés minutes secondes</OPTION>
						</SELECT>
					}
					?>
					</td>
				</tr>
			</table>
		</form>
 
 
	<body/>
 
</html>
Merci d'avance