bonjour,

ce que j'aimerai faire est que quand je clic sur la correction et bien tu m affiche les bonnes réponses et tu corriges les mauvaises tout en les affichant et si oublie
et bien message erreurs pour les choix non coché.....
$reponses = array(
'chx' => array(
'reponse' => 'une',
'mot' => 'route'
) ,
'chx_1' => array(
'reponse' => 'un',
'mot' => 'four'
) ,
'chx_2' => array(
'reponse' => 'un',
'mot' => 'bouton'
) ,
'chx_3' => array(
'reponse' => 'un',
'mot' => 'jour'
) ,
'chx_4' => array(
'reponse' => 'une',
'mot' => 'poubelle'
) ,
'chx_5' => array(
'reponse' => 'un',
'mot' => 'nouveau'
) ,
'chx_6' => array(
'reponse' => 'un',
'mot' => 'trou'
) ,
'chx_7' => array(
'reponse' => 'une',
'mot' => 'nouvelle'
) ,
'chx_8' => array(
'reponse' => 'un',
'mot' => 'tournevis'
) ,
'chx_9' => array(
'reponse' => 'une',
'mot' => 'douche'
) 
);
$choix = array(
'un','une'
);
$errors = array();
$point = array();
$i = 9;
$n = 0;
foreach($reponses as $cle => $reponse)
{
if (isset($_POST['correction']))
{
$clic = $_POST[$cle];
$msg_error = false;
$msg_true = true;	
 if (empty($clic) && !empty($clic) !== $choix)
{
echo'<p style="display:block;margin-left:-25%;">vous n\'avez pas rempli tous les champs, veuillez recommençer!</p>';
break;
}
 if ($clic == $reponse['reponse'])
{
$point[$cle] = htmlspecialchars($clic);
echo '<p>' . $point[$cle]. '&nbsp&nbsp&nbsp&nbsp<b>' . $reponse['mot'] .'</b></p><br />';
}
else 
if ($clic !== $reponse['reponse'])
{
$errors[$cle] = htmlspecialchars($clic);
echo '<p style="color:#red;"><del>' . $errors[$cle] . '&nbsp&nbsp&nbsp&nbsp<b>'.$reponse['mot'].'</del></b></p><p class="red"><b>'.$reponse['reponse'].' ' . $reponse['mot'] . '</b></p><br />';
}
}
}
echo'<div class="clear"></div>';
echo '<br /><br />';
?>