Guten Tag,
für die Schule muss ich ein Schulquiz erstellen mit 15 Fragen, und jede Frage soll 3 Antworten haben, wovon eine richtig ist (markiert mit value=1).
Den Teil habe ich auch bisher, aber jetzt weiß ich nicht, wie dann derjenige, der das quiz macht, sieht, wieviele Fragen er richtig beantwortet hat,
und wenn möglich auch welche Fragen er falsch beantwortet hat... Was muss ich dafür machen? Bisher habe ich das:
<html>
<body>
<Center>
<table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<B>Frage 1:</td><td>Seit wann ist das Liborius Gymanium ein staatlich anerkanntes Gymansuim?
</td></tr> </table>
<table width=580><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[1]" VALUE="0"> </td>
<td width=569> 01.09.1971 </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[1]" VALUE="0"></td>
<td width=569> 01.09.1981 </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[1]" VALUE="1"></td>
<td width=569> 01.09.1991 </td></tr><tr bgcolor="FFEEDD"><td width=15%>
</tr></table></center><table width=580 cellpadding=5><tr </B>
<Center>
</div></div><table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<B>Frage 2:</td><td> Aus wievielen Gebaüdeteilen besteht das Liborius Gymnasium?
</td></tr> </table>
<table width=580><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[2]" VALUE="0"> </td>
<td width=569> Aus einem Gebäudeteil </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[2]" VALUE="0"></td>
<td width=569> Aus zwei Gebäudeteilen </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[2]" VALUE="1"></td>
<td width=569> Aus drei Gebäudeteilen </td></tr><tr bgcolor="FFEEDD"><td width=15%>
</tr></table></center><table width=580 cellpadding=5><tr </B>
<Center>
</div></div><table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<B>Frage 3:</td><td> Welche Aktivität ist auf dem Pausenhof NICHT möglich?
</td></tr> </table>
<table width=580><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[3]" VALUE="0"> </td>
<td width=569> Tischtennis </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[3]" VALUE="1"></td>
<td width=569> Schwimmen </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[3]" VALUE="0"></td>
<td width=569> Großfeldschach </td></tr><tr bgcolor="FFEEDD"><td width=15%>
</tr></table></center><table width=580 cellpadding=5><tr </B>
<Center>
</div></div><table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<input type=submit value="Die Auswertung"></form></center></center> </center></center>
</body>
</html>
Das sind jetzt nur 3 Fragen von 15, aber meine Frage ist jetzt, wie ich sozusagen eine Auswertung der Values und der damit verbunden Fragen bzw Antworten in html programmiere.. Könnt ihr mir helfen?
LG, Konstantin ;-)
für die Schule muss ich ein Schulquiz erstellen mit 15 Fragen, und jede Frage soll 3 Antworten haben, wovon eine richtig ist (markiert mit value=1).
Den Teil habe ich auch bisher, aber jetzt weiß ich nicht, wie dann derjenige, der das quiz macht, sieht, wieviele Fragen er richtig beantwortet hat,
und wenn möglich auch welche Fragen er falsch beantwortet hat... Was muss ich dafür machen? Bisher habe ich das:
<html>
<body>
<Center>
<table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<B>Frage 1:</td><td>Seit wann ist das Liborius Gymanium ein staatlich anerkanntes Gymansuim?
</td></tr> </table>
<table width=580><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[1]" VALUE="0"> </td>
<td width=569> 01.09.1971 </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[1]" VALUE="0"></td>
<td width=569> 01.09.1981 </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[1]" VALUE="1"></td>
<td width=569> 01.09.1991 </td></tr><tr bgcolor="FFEEDD"><td width=15%>
</tr></table></center><table width=580 cellpadding=5><tr </B>
<Center>
</div></div><table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<B>Frage 2:</td><td> Aus wievielen Gebaüdeteilen besteht das Liborius Gymnasium?
</td></tr> </table>
<table width=580><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[2]" VALUE="0"> </td>
<td width=569> Aus einem Gebäudeteil </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[2]" VALUE="0"></td>
<td width=569> Aus zwei Gebäudeteilen </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[2]" VALUE="1"></td>
<td width=569> Aus drei Gebäudeteilen </td></tr><tr bgcolor="FFEEDD"><td width=15%>
</tr></table></center><table width=580 cellpadding=5><tr </B>
<Center>
</div></div><table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<B>Frage 3:</td><td> Welche Aktivität ist auf dem Pausenhof NICHT möglich?
</td></tr> </table>
<table width=580><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[3]" VALUE="0"> </td>
<td width=569> Tischtennis </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[3]" VALUE="1"></td>
<td width=569> Schwimmen </td></tr><tr bgcolor="EEEEEE"><td width=10>
<INPUT TYPE="RADIO" NAME="antwort[3]" VALUE="0"></td>
<td width=569> Großfeldschach </td></tr><tr bgcolor="FFEEDD"><td width=15%>
</tr></table></center><table width=580 cellpadding=5><tr </B>
<Center>
</div></div><table width=580 cellpadding=5><tr bgcolor="FFEEDD"> <td width=15%> </B>
<input type=submit value="Die Auswertung"></form></center></center> </center></center>
</body>
</html>
Das sind jetzt nur 3 Fragen von 15, aber meine Frage ist jetzt, wie ich sozusagen eine Auswertung der Values und der damit verbunden Fragen bzw Antworten in html programmiere.. Könnt ihr mir helfen?
LG, Konstantin ;-)