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
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
A voir également:
- Formulaire/qcm site
- Site de telechargement - Accueil - Outils
- Site comme coco - Accueil - Réseaux sociaux
- Quel site remplace coco - Accueil - Réseaux sociaux
- Site pour vendre des objets d'occasion - Guide
- Formulaire de réclamation facebook - Guide
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
1 juil. 2009 à 20:18
Que cherche tu à faire avec les données du formulaire ?
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
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
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
1 juil. 2009 à 21:24
il est pas complet ton QCM, comment tu gère le résultat ?
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
1 juil. 2009 à 21:32
c'est a dire ?
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
1 juil. 2009 à 21:50
pourquoi ne réalise tu pas ton QCM en php ?
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
2 juil. 2009 à 08:08
je ne m'y connais pas asser mais que peut ton changer a l'exemple du haut ?
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
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
Un conseil utilise PHP tu n'as même pas besoin d'une base de données SQL
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
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
<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
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
2 juil. 2009 à 13:04
le script fonctionne chez moi
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
2 juil. 2009 à 13:06
tu a les résulta aussi ?
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
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
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
2 juil. 2009 à 14:12
ok c'est déjà bien moi j'ai rien du tout
mais comment le faire en php
mais comment le faire en php