summaryrefslogtreecommitdiff
path: root/www/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.html')
-rw-r--r--www/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/www/index.html b/www/index.html
new file mode 100644
index 0000000..a2d890e
--- /dev/null
+++ b/www/index.html
@@ -0,0 +1,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>&nbsp;</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>