blob: a2d890e2013630e3d83509b488ad2f0554d93d06 (
plain)
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
47
48
49
50
51
52
|
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Exemple</title>
<style>
form {
border: solid black 1px;
padding: 1em;
margin:1em;
}
#titre {
color:blue;
}
.formulaire {
color: #808080;
}
</style>
</head>
<body>
<h1 id="titre">Système d'exploitation</h1>
<div>
<strong>Questionnaire</strong>
<form id="monform" action="page.php">
<p class="formulaire">
Votre nom :<input type="text" name="username">
</p>
<p class="formulaire">
Votre OS : <select name="os" maxlength=7>
<option label="------"></option>
<option>Mac Os</option>
<option>Windows</option>
</select>
</p>
<p>
<input type="submit" value="Valider">
</p>
</form>
<p><em>
<button onclick="changeMethod()">Method POST</button>
</em></p>
<p id="demo">La méthode est GET.<br> </p>
</div>
<p><a href="login.php">Login</a>
<script>
function changeMethod() {
document.getElementById("monform").method = "post";
document.getElementById("demo").innerHTML = "La méthode est maintenant POST.<br>Rafraîchissez votre page pour revenir à GET.";
}
</script>
</body>
</html>
|