Add answer
This commit is contained in:
parent
6ba639e01d
commit
8a13dc942a
45
index.html
45
index.html
@ -4,6 +4,20 @@
|
|||||||
<meta charset="utf8" />
|
<meta charset="utf8" />
|
||||||
<link rel="Stylesheet" href="style.css" />
|
<link rel="Stylesheet" href="style.css" />
|
||||||
<title>Every Questions</title>
|
<title>Every Questions</title>
|
||||||
|
|
||||||
|
<script laguage="javascript">
|
||||||
|
function add()
|
||||||
|
{
|
||||||
|
var element = document.createElement("input");
|
||||||
|
|
||||||
|
element.setAttribute("type", "text");
|
||||||
|
element.setAttribute("name", "answer");
|
||||||
|
|
||||||
|
var foo = document.getElementById("formulaire");
|
||||||
|
foo.appendChild(element);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -14,6 +28,30 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<form id="formulaire" method="post" action="questions.php">
|
<form id="formulaire" method="post" action="questions.php">
|
||||||
|
<p>
|
||||||
|
<label for="course">De quelle matière s'agit-il ?</label>
|
||||||
|
<section name="course" id="course">
|
||||||
|
<optgroup label="Cours communs">
|
||||||
|
<option value="SGBD">SGBD</option>
|
||||||
|
<option value="CompressionDeDonnées">
|
||||||
|
Compression de données</option>
|
||||||
|
<option value="TYLA">TYLA</option>
|
||||||
|
</optgroup>
|
||||||
|
|
||||||
|
<optgroup label="TDA">
|
||||||
|
<option value="RXAN">RXAN</option>
|
||||||
|
</optgroup>
|
||||||
|
|
||||||
|
<optgroup label="MTM">
|
||||||
|
<option value="ITIL">ITIL</option>
|
||||||
|
</optgroup>
|
||||||
|
|
||||||
|
<optgroup label="Autre">
|
||||||
|
<option value="Autre" selected>Autre</option>
|
||||||
|
</optgroup>
|
||||||
|
</section>
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<label for="question">Quelle est votre question ? </label>
|
<label for="question">Quelle est votre question ? </label>
|
||||||
<textarea id="question" name="question"
|
<textarea id="question" name="question"
|
||||||
@ -23,6 +61,13 @@
|
|||||||
<label for="answer">Quelle est la réponse ? </label>
|
<label for="answer">Quelle est la réponse ? </label>
|
||||||
<input id="answer" name="answer" type="text" />
|
<input id="answer" name="answer" type="text" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<input type="button" value=
|
||||||
|
"Ajouter une réponse supplémentaire" onclick="add()"/>
|
||||||
|
<
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" name="send" value="Envoyer" />
|
<input type="submit" name="send" value="Envoyer" />
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user