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:
|
[...]
<head>
[...]
<script type="text/javascript">
<!--
function antwort ()
{
if (document.quiz.frage1.value == "1") AND (document.quiz.frage2.value == "2")
{
location.href = "quiz_richtig.php";
}
else
{
location.href = "quiz_falsch.php";
}
}
//-->
</script>
</head>
[...]
<form name="quiz">
<h1>Frage 1</h1>
<input type="text" name="frage1">
<h1>Frage 2</h1>
<input type="text" name="frage2"><br><br>
<input type="button" value="Senden" id="button" onclick="antwort()">
</form>
[...] |