Formulaire/qcm site

Fermé
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 - 1 juil. 2009 à 19:50
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 - 2 juil. 2009 à 14:12
Bonjour,sur un générateur de qcm j'ai tester un "patron" =


<script></script>
<h1><font face="Arial">QUIZZ</font></h1>
<h2 align="center"><font face="Arial" color="#ffff00">TITRE_SUJET_QCM</font></h2>
<h3><font face="Arial">Testez vos connaissances !!</font></h3>
<h4><font face="Arial">Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br />
Bonne chance !</font></h4>
<p><font face="Arial"><noscript>JavaScript est désactivé. Utilisez un
autre navigateur plus récent...</noscript>  </font></p>
<form name="quest">
<hr color="#ffff00" />
<p><font face="Arial" color="#ffff00">1 </font><font face="Arial"><br />
Question1<br />
<input type="radio" name="1" value="a" onclick="Engine(1, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse1a<br />
<input type="radio" name="1" value="b" onclick="Engine(1, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse1b<br />
<input type="radio" name="1" value="c" onclick="Engine(1, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse1c<br />
<input type="radio" name="1" value="d" onclick="Engine(1, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse1d<br />
<br />
</font><font face="Arial" color="#ffff00">2 </font><font face="Arial"><br />
Question2<br />
<input type="radio" name="2" value="a" onclick="Engine(2, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse2a<br />
<input type="radio" name="2" value="b" onclick="Engine(2, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse2b<br />
<input type="radio" name="2" value="c" onclick="Engine(2, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse2c<br />
<input type="radio" name="2" value="d" onclick="Engine(2, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse2d<br />
<br />
</font><font face="Arial" color="#ffff00">3 </font><font face="Arial"><br />
Question3<br />
<input type="radio" name="3" value="a" onclick="Engine(3, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse3a<br />
<input type="radio" name="3" value="b" onclick="Engine(3, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse3b<br />
<input type="radio" name="3" value="c" onclick="Engine(3, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse3c<br />
<input type="radio" name="3" value="d" onclick="Engine(3, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse3d<br />
<br />
</font><font face="Arial" color="#ffff00">4 </font><font face="Arial"><br />
Question4<br />
<input type="radio" name="4" value="a" onclick="Engine(4, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse4a<br />
<input type="radio" name="4" value="b" onclick="Engine(4, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse4b<br />
<input type="radio" name="4" value="c" onclick="Engine(4, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse4c<br />
<input type="radio" name="4" value="d" onclick="Engine(4, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse4d<br />
<br />
</font><font face="Arial" color="#ffff00">5 </font><font face="Arial"><br />
Question5<br />
<input type="radio" name="5" value="a" onclick="Engine(5, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse5a<br />
<input type="radio" name="5" value="b" onclick="Engine(5, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse5b<br />
<input type="radio" name="5" value="c" onclick="Engine(5, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse5c<br />
<input type="radio" name="5" value="d" onclick="Engine(5, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse5d<br />
<br />
</font><font face="Arial" color="#ffff00">6 </font><font face="Arial"><br />
Question6<br />
<input type="radio" name="6" value="a" onclick="Engine(6, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse6a<br />
<input type="radio" name="6" value="b" onclick="Engine(6, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse6b<br />
<input type="radio" name="6" value="c" onclick="Engine(6, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse6c<br />
<input type="radio" name="6" value="d" onclick="Engine(6, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse6d<br />
<br />
</font><font face="Arial" color="#ffff00">7 </font><font face="Arial"><br />
Question7<br />
<input type="radio" name="7" value="a" onclick="Engine(7, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse7a<br />
<input type="radio" name="7" value="b" onclick="Engine(7, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse7b<br />
<input type="radio" name="7" value="c" onclick="Engine(7, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse7c<br />
<input type="radio" name="7" value="d" onclick="Engine(7, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse7d<br />
<br />
</font><font face="Arial" color="#ffff00">8 </font><font face="Arial"><br />
Question8<br />
<input type="radio" name="8" value="a" onclick="Engine(8, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse8a<br />
<input type="radio" name="8" value="b" onclick="Engine(8, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse8b<br />
<input type="radio" name="8" value="c" onclick="Engine(8, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse8c<br />
<input type="radio" name="8" value="d" onclick="Engine(8, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse8d<br />
<br />
</font><font face="Arial" color="#ffff00">9 </font><font face="Arial"><br />
Question9<br />
<input type="radio" name="9" value="a" onclick="Engine(9, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse9a<br />
<input type="radio" name="9" value="b" onclick="Engine(9, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse9b<br />
<input type="radio" name="9" value="c" onclick="Engine(9, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse9c<br />
<input type="radio" name="9" value="d" onclick="Engine(9, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse9d<br />
<br />
</font><font face="Arial" color="#ffff00">10 </font><font face="Arial"><br />
Question10<br />
<input type="radio" name="10" value="a" onclick="Engine(10, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse10a<br />
<input type="radio" name="10" value="b" onclick="Engine(10, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse10b<br />
<input type="radio" name="10" value="c" onclick="Engine(10, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse10c<br />
<input type="radio" name="10" value="d" onclick="Engine(10, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse10d<br />
<br />
</font><font face="Arial" color="#ffff00">11 </font><font face="Arial"><br />
Question11<br />
<input type="radio" name="11" value="a" onclick="Engine(11, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse11a<br />
<input type="radio" name="11" value="b" onclick="Engine(11, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse11b<br />
<input type="radio" name="11" value="c" onclick="Engine(11, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse11c<br />
<input type="radio" name="11" value="d" onclick="Engine(11, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse11d<br />
<br />
</font><font face="Arial" color="#ffff00">12 </font><font face="Arial"><br />
Question12<br />
<input type="radio" name="12" value="a" onclick="Engine(12, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse12a<br />
<input type="radio" name="12" value="b" onclick="Engine(12, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse12b<br />
<input type="radio" name="12" value="c" onclick="Engine(12, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse12c<br />
<input type="radio" name="12" value="d" onclick="Engine(12, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse12d<br />
<br />
</font><font face="Arial" color="#ffff00">13 </font><font face="Arial"><br />
Question13<br />
<input type="radio" name="13" value="a" onclick="Engine(13, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse13a<br />
<input type="radio" name="13" value="b" onclick="Engine(13, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse13b<br />
<input type="radio" name="13" value="c" onclick="Engine(13, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse13c<br />
<input type="radio" name="13" value="d" onclick="Engine(13, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse13d<br />
<br />
</font><font face="Arial" color="#ffff00">14 </font><font face="Arial"><br />
Question14<br />
<input type="radio" name="14" value="a" onclick="Engine(14, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse14a<br />
<input type="radio" name="14" value="b" onclick="Engine(14, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse14b<br />
<input type="radio" name="14" value="c" onclick="Engine(14, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse14c<br />
<input type="radio" name="14" value="d" onclick="Engine(14, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse14d<br />
<br />
</font><font face="Arial" color="#ffff00">15 </font><font face="Arial"><br />
Question15<br />
<input type="radio" name="15" value="a" onclick="Engine(15, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse15a<br />
<input type="radio" name="15" value="b" onclick="Engine(15, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse15b<br />
<input type="radio" name="15" value="c" onclick="Engine(15, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse15c<br />
<input type="radio" name="15" value="d" onclick="Engine(15, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse15d<br />
<br />
</font><font face="Arial" color="#ffff00">16 </font><font face="Arial"><br />
Question16<br />
<input type="radio" name="16" value="a" onclick="Engine(16, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse16a<br />
<input type="radio" name="16" value="b" onclick="Engine(16, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse16b<br />
<input type="radio" name="16" value="c" onclick="Engine(16, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse16c<br />
<input type="radio" name="16" value="d" onclick="Engine(16, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse16d<br />
<br />
</font><font face="Arial" color="#ffff00">17 </font><font face="Arial"><br />
Question17<br />
<input type="radio" name="17" value="a" onclick="Engine(17, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse17a<br />
<input type="radio" name="17" value="b" onclick="Engine(17, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse17b<br />
<input type="radio" name="17" value="c" onclick="Engine(17, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse17c<br />
<input type="radio" name="17" value="d" onclick="Engine(17, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse17d<br />
<br />
</font><font face="Arial" color="#ffff00">18 </font><font face="Arial"><br />
Question18<br />
<input type="radio" name="18" value="a" onclick="Engine(18, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse18a<br />
<input type="radio" name="18" value="b" onclick="Engine(18, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse18b<br />
<input type="radio" name="18" value="c" onclick="Engine(18, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse18c<br />
<input type="radio" name="18" value="d" onclick="Engine(18, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse18d<br />
<br />
</font><font face="Arial" color="#ffff00">19 </font><font face="Arial"><br />
Question19<br />
<input type="radio" name="19" value="a" onclick="Engine(19, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse19a<br />
<input type="radio" name="19" value="b" onclick="Engine(19, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse19b<br />
<input type="radio" name="19" value="c" onclick="Engine(19, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse19c<br />
<input type="radio" name="19" value="d" onclick="Engine(19, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse19d<br />
<br />
</font><font face="Arial" color="#ffff00">20 </font><font face="Arial"><br />
Question20<br />
<input type="radio" name="20" value="a" onclick="Engine(20, this.value)" /></font><font face="Arial" color="#ff0000"> a </font><font face="Arial">Réponse20a<br />
<input type="radio" name="20" value="b" onclick="Engine(20, this.value)" /></font><font face="Arial" color="#ff0000"> b </font><font face="Arial">Réponse20b<br />
<input type="radio" name="20" value="c" onclick="Engine(20, this.value)" /></font><font face="Arial" color="#ff0000"> c </font><font face="Arial">Réponse20c<br />
<input type="radio" name="20" value="d" onclick="Engine(20, this.value)" /></font><font face="Arial" color="#ff0000"> d </font><font face="Arial">Réponse20d<br />
</font></p>
<p><font face="Arial">  <input type="button" name="Resultats" value="Résultats" onclick="NextLevel()" /></font></p>
</form>


quand je clique sur résulta ,rien ne se passe ?! j'utilise firefox

merci d'avance !
A voir également:

12 réponses

BanBan55 Messages postés 363 Date d'inscription dimanche 24 février 2008 Statut Membre Dernière intervention 9 juin 2024 45
1 juil. 2009 à 20:18
Que cherche tu à faire avec les données du formulaire ?
0
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 17
1 juil. 2009 à 20:40
je cherche a trouver le problème ! a tu un éditeur html ? colle ce code dedans et essaye ou va sur http://nintenquiz.webnode.com/nintenquiz/ et tu verra que le bouton résulta ne marche pas
0
BanBan55 Messages postés 363 Date d'inscription dimanche 24 février 2008 Statut Membre Dernière intervention 9 juin 2024 45
1 juil. 2009 à 21:24
il est pas complet ton QCM, comment tu gère le résultat ?
0
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 17
1 juil. 2009 à 21:32
c'est a dire ?
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
BanBan55 Messages postés 363 Date d'inscription dimanche 24 février 2008 Statut Membre Dernière intervention 9 juin 2024 45
1 juil. 2009 à 21:50
pourquoi ne réalise tu pas ton QCM en php ?
0
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 17
2 juil. 2009 à 08:08
je ne m'y connais pas asser mais que peut ton changer a l'exemple du haut ?
0
BanBan55 Messages postés 363 Date d'inscription dimanche 24 février 2008 Statut Membre Dernière intervention 9 juin 2024 45
2 juil. 2009 à 12:23
rien, tu peux rien faire avec ton formulaire sans avoir un résultat pour qu'il compare les réponses du visiteur aux bonnes réponses.

Un conseil utilise PHP tu n'as même pas besoin d'une base de données SQL
0
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 17
2 juil. 2009 à 12:39
et sa :


<HTML>
<HEAD>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>TITRE_SUJET_QCM</TITLE>

</HEAD>
<BODY bgcolor="BLACK" text="WHITE">
<h1>QUIZZ</h1><h2 align="center"><font color="YELLOW">TITRE_SUJET_QCM</font></h2>
<h3>Testez vos connaissances !!</h3>
<h4>Vous devez répondre à toutes les questions (cercle à gauche de la bonne réponse) et ensuite cliquer sur le bouton (Résultats) en bas de cette page... <br>
Bonne chance !</h4>

<p><NOSCRIPT>JavaScript est désactivé. Utilisez un autre navigateur plus récent...</NOSCRIPT>  </p>

<form name="quest">
<font color="YELLOW">1 </font>Question1<BR>
<input type="radio" name="1" value="a" onclick="Engine(1, this.value)"><font color="RED"> a </font>Réponse1a<BR>
<input type="radio" name="1" value="b" onclick="Engine(1, this.value)"><font color="RED"> b </font>Réponse1b<BR>
<input type="radio" name="1" value="c" onclick="Engine(1, this.value)"><font color="RED"> c </font>Réponse1c<BR>
<input type="radio" name="1" value="d" onclick="Engine(1, this.value)"><font color="RED"> d </font>Réponse1d<BR><BR>
<font color="YELLOW">2 </font>Question2<BR>
<input type="radio" name="2" value="a" onclick="Engine(2, this.value)"><font color="RED"> a </font>Réponse2a<BR>
<input type="radio" name="2" value="b" onclick="Engine(2, this.value)"><font color="RED"> b </font>Réponse2b<BR>
<input type="radio" name="2" value="c" onclick="Engine(2, this.value)"><font color="RED"> c </font>Réponse2c<BR>
<input type="radio" name="2" value="d" onclick="Engine(2, this.value)"><font color="RED"> d </font>Réponse2d<BR><BR>
<font color="YELLOW">3 </font>Question3<BR>
<input type="radio" name="3" value="a" onclick="Engine(3, this.value)"><font color="RED"> a </font>Réponse3a<BR>
<input type="radio" name="3" value="b" onclick="Engine(3, this.value)"><font color="RED"> b </font>Réponse3b<BR>
<input type="radio" name="3" value="c" onclick="Engine(3, this.value)"><font color="RED"> c </font>Réponse3c<BR>
<input type="radio" name="3" value="d" onclick="Engine(3, this.value)"><font color="RED"> d </font>Réponse3d<BR><BR>
<font color="YELLOW">4 </font>Question4<BR>
<input type="radio" name="4" value="a" onclick="Engine(4, this.value)"><font color="RED"> a </font>Réponse4a<BR>
<input type="radio" name="4" value="b" onclick="Engine(4, this.value)"><font color="RED"> b </font>Réponse4b<BR>
<input type="radio" name="4" value="c" onclick="Engine(4, this.value)"><font color="RED"> c </font>Réponse4c<BR>
<input type="radio" name="4" value="d" onclick="Engine(4, this.value)"><font color="RED"> d </font>Réponse4d<BR><BR>
<font color="YELLOW">5 </font>Question5<BR>
<input type="radio" name="5" value="a" onclick="Engine(5, this.value)"><font color="RED"> a </font>Réponse5a<BR>
<input type="radio" name="5" value="b" onclick="Engine(5, this.value)"><font color="RED"> b </font>Réponse5b<BR>
<input type="radio" name="5" value="c" onclick="Engine(5, this.value)"><font color="RED"> c </font>Réponse5c<BR>
<input type="radio" name="5" value="d" onclick="Engine(5, this.value)"><font color="RED"> d </font>Réponse5d<BR><BR>
<font color="YELLOW">6 </font>Question6<BR>
<input type="radio" name="6" value="a" onclick="Engine(6, this.value)"><font color="RED"> a </font>Réponse6a<BR>
<input type="radio" name="6" value="b" onclick="Engine(6, this.value)"><font color="RED"> b </font>Réponse6b<BR>
<input type="radio" name="6" value="c" onclick="Engine(6, this.value)"><font color="RED"> c </font>Réponse6c<BR>
<input type="radio" name="6" value="d" onclick="Engine(6, this.value)"><font color="RED"> d </font>Réponse6d<BR><BR>
<font color="YELLOW">7 </font>Question7<BR>
<input type="radio" name="7" value="a" onclick="Engine(7, this.value)"><font color="RED"> a </font>Réponse7a<BR>
<input type="radio" name="7" value="b" onclick="Engine(7, this.value)"><font color="RED"> b </font>Réponse7b<BR>
<input type="radio" name="7" value="c" onclick="Engine(7, this.value)"><font color="RED"> c </font>Réponse7c<BR>
<input type="radio" name="7" value="d" onclick="Engine(7, this.value)"><font color="RED"> d </font>Réponse7d<BR><BR>
<font color="YELLOW">8 </font>Question8<BR>
<input type="radio" name="8" value="a" onclick="Engine(8, this.value)"><font color="RED"> a </font>Réponse8a<BR>
<input type="radio" name="8" value="b" onclick="Engine(8, this.value)"><font color="RED"> b </font>Réponse8b<BR>
<input type="radio" name="8" value="c" onclick="Engine(8, this.value)"><font color="RED"> c </font>Réponse8c<BR>
<input type="radio" name="8" value="d" onclick="Engine(8, this.value)"><font color="RED"> d </font>Réponse8d<BR><BR>
<font color="YELLOW">9 </font>Question9<BR>
<input type="radio" name="9" value="a" onclick="Engine(9, this.value)"><font color="RED"> a </font>Réponse9a<BR>
<input type="radio" name="9" value="b" onclick="Engine(9, this.value)"><font color="RED"> b </font>Réponse9b<BR>
<input type="radio" name="9" value="c" onclick="Engine(9, this.value)"><font color="RED"> c </font>Réponse9c<BR>
<input type="radio" name="9" value="d" onclick="Engine(9, this.value)"><font color="RED"> d </font>Réponse9d<BR><BR>
<font color="YELLOW">10 </font>Question10<BR>
<input type="radio" name="10" value="a" onclick="Engine(10, this.value)"><font color="RED"> a </font>Réponse10a<BR>
<input type="radio" name="10" value="b" onclick="Engine(10, this.value)"><font color="RED"> b </font>Réponse10b<BR>
<input type="radio" name="10" value="c" onclick="Engine(10, this.value)"><font color="RED"> c </font>Réponse10c<BR>
<input type="radio" name="10" value="d" onclick="Engine(10, this.value)"><font color="RED"> d </font>Réponse10d<BR><BR>


<p>  <input type="button" name="Resultats" value="Résultats"

onclick ="NextLevel()"></p></form>

<script language="JavaScript"><!--// hide
// hide
/* GameQuiz v1.0 by Wizzz.
Copyright (c) of Wizzz, 1997.
Permission to use, edit, etc. granted as long as the head section is intact!
Modifications et ajouts par Eric Dromer... à suivre...
*/

var rep = new Array;
var faite = new Array;
var score = 0;

// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
// valeurs à modifier (a b c ou d) :

rep[1] = "a";
rep[2] = "a";
rep[3] = "a";
rep[4] = "a";
rep[5] = "a";
rep[6] = "a";
rep[7] = "a";
rep[8] = "a";
rep[9] = "a";
rep[10] = "a";

// rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

function Engine(question, reponse) {
if (reponse != rep[question]) {
if (!faite[question]) {
faite[question] = -1;
alert("Faux! Ton score est de : " + score + " La bonne réponse était en -" + rep[question] + "-");
}
else {
alert("Tu as déjà répondu à cette question !");
}
}
else {
if (!faite[question]) {
faite[question] = -1;
score++;
alert("Bien! Ton score est de : " + score);
}
else {
alert("Tu as déjà répondu à cette question !");
}
}
}

function NextLevel () {
if (score >= 11) {
alert("Tricheur !");
}
if (score > 9 && score < 11) {
alert(score + "/10 " + "Un coup de chance !... peut-être.");
}
if (score > 8 && score <= 9) {
alert(score + "/10 " + "Bien, mais... pas parfait.");
}
if (score >= 5 && score <= 8) {
alert(score + "/10 " + "Pas mal, on a vu mieux que cela cependant...");
}
if (score >= 1 && score < 5) {
alert(score + "/10 " + "Pas terrible... un autre essai ?");
}
if (score < 1) {
alert(score + "/10 " + "Un autre essai ?");
}

// ======================================================
// ligne qui suit à modifier pour envoyer le formulaire
// (mais indiquez la méthode dans la balise du formulaire) :
// document.quest.submit()

// ligne qui suit pour vider le formulaire :
faite = new Array;
score = 0;
//ligne suivante à désactiver si IE3 ou -
document.quest.reset();
}


// --></script>

</BODY>
</HTML>


mais sa ne marche pas non plus
0
BanBan55 Messages postés 363 Date d'inscription dimanche 24 février 2008 Statut Membre Dernière intervention 9 juin 2024 45
2 juil. 2009 à 13:04
le script fonctionne chez moi
0
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 17
2 juil. 2009 à 13:06
tu a les résulta aussi ?
0
BanBan55 Messages postés 363 Date d'inscription dimanche 24 février 2008 Statut Membre Dernière intervention 9 juin 2024 45
2 juil. 2009 à 13:58
Oui j'ai le résultat. Par contre je trouve pas terrible le résultat qui s'affiche dans une boîte alerte. Je suis convaincu que le qcm en php serait beaucoup plus agréable
0
rémoundo Messages postés 408 Date d'inscription mardi 12 juin 2007 Statut Membre Dernière intervention 17 mars 2010 17
2 juil. 2009 à 14:12
ok c'est déjà bien moi j'ai rien du tout

mais comment le faire en php
0