J'ai pas mal cherché sur le forum, mais je n'ai pas trouvé réponse à ma question.
Je suis un réel débutant dans la programmation HTML et PHP, (j'apprends).
Donc voila mon soucis.
Je tente de créer un test d'analyse transactionnelle, en cueillant par ci par la quelques lignes sur des sources,
j'ai réussi à établir un questionnaire. Mon problème, est que chaque réponse donnée selon la question, a une valeur différente qui va me créer un résultat donné.
Ex: Question 1 : réponse 1 = 5 sur une qualité.
Question 2 : réponse 3 = 5 sur un défaut.
Ce qui doit me donner à la fin, 5 résultat avec chacun sa valeur.
Comment je dois créer mon fichier réponse, qui devrait s'appeler "Résultat.php".
Code : Tout sélectionner
<html>
<head>
<meta name="LANGUAGE" content="FR">
<meta http-equiv="CONTENT-LANGUAGE" content="FR">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252">
<title>Questionnaire sur les Drivers !</title>
</head>
<body topmargin="0" leftmargin="0"
style="color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"
alink="#ffffff" link="#ffffff" vlink="#ffffff">
<basefont face="Arial">
<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0"
height="100%" width="100%">
<tbody>
<tr>
<td align="center" bgcolor="#000000" height="100%" valign="top"
width="258">
<table border="0" cellpadding="0" cellspacing="0" height="100%"
width="258">
<tbody>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</tbody>
</table>
</td>
<td align="left" height="100%" valign="top" width="100%">
<table border="0" cellpadding="0" cellspacing="0" height="100%"
width="100%">
<tbody>
<tr>
</tr>
<tr>
<td align="left" height="100%" valign="top" width="100%">
<table border="0" height="100%" width="100%">
<tbody>
<tr>
<td align="left" valign="top">
<h3 align="center">Les Drivers</h3>
<p> </p>
<form action="resultat.php" method="post"
name="Resultat"> <br>
<br>
<p>1 - <b>Pour prendre une décision. Quelle
qualité d'information aimez-vous avoir ?</b> <br>
<input value="0" name="que[0]" type="radio">Presque
la totalité. <br>
<input value="1" name="que[0]" type="radio"> La
plus grande partie. <br>
<input value="2" name="que[0]" type="radio"> Une
quantité suffisante. <br>
<input value="3" name="que[0]" type="radio"> Une
quantité modérée. <br>
<input value="3" name="que[0]" type="radio"> Une
petite quantité. </p>
<p>2 - <b>Question 2</b> <br>
<input value="0" name="que[1]" type="radio">réponse
1 <br>
<input value="1" name="que[1]" type="radio">réponse
2 <br>
<input value="2" name="que[1]" type="radio">réponse
3 <br>
<input value="2" name="que[1]" type="radio">réponse
4 <br>
<input value="2" name="que[1]" type="radio">réponse
5 </p>
<p align="center"><input value="Résultat"
onclick="Resultat.submit();" type="button"></p>
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2"> <br>
</td>
</tr>
</tbody>
</table>
</body>
</html>
Merci par avance.
Et désolé si j'ai fait un double post.