Bonjour,
J'aimerais creer un test (gag) pour cerner la personalité de quequ'un au travers d'un certain nombre que question.
Pour ce faire j'ai créer un formulaire html avec des chexbox et plein de question avec a chaque fois comme réponse oui ou non ...
J'ai attribuer a oui la value 1 et non 0.
voici les modalité de mon formulaire. :
<form action="calcul.php" method="post">
Mais je n'arrive pas a traiter le score ... Rien ne s'affiche.
voici ma page des score :
<html><head><title>Score</title></head>
<body>
<?php
$choice = $_POST['choice'];
$choice2 = $_POST['choice2'];
$choice3 = $_POST['choice3'];
$choice4 = $_POST['choice4'];
$choice5 = $_POST['choice5'];
$choice6 = $_POST['choice6'];
$choice7 = $_POST['choice7'];
$choice8 = $_POST['choice8'];
$choice9 = $_POST['choice9'];
$choice10 = $_POST['choice10'];
$choice11 = $_POST['choice11'];
$choice12 = $_POST['choice12'];
$choice13 = $_POST['choice13'];
$choice14 = $_POST['choice14'];
$choice15 = $_POST['choice15'];
$choice16 = $_POST['choice16'];
$choice17 = $_POST['choice17'];
$choice18 = $_POST['choice18'];
$choice19 = $_POST['choice19'];
$choice20 = $_POST['choice20'];
$score = $choice + $choice2 + $choice3 + $choice4 + $choice5 + $choice6 + $choice7 + $choice8 + $choice9 + $choice10 + $choice11 + $choice12 + $choice13 + $choice14 + $choice15 + $choice16 + $choice17 + $choice18 + $choice19 + $choice20;
echo "<h3>Votre score est de " . $score . "</h3>";
?>
</body></html>
Quelqu'un pourait il m'aider svp