bonjour,

pouvez vous me dire pourquoi rien ne s'affiche, quand je clic sur correction je devrai avoir les bonnes et les mauvaises réponses si il y a....

$errors = array();
$point = array();
$i = 1.25;
foreach($reponses as $cle => $reponse)
{
if (isset($_POST['correction']))
{
$clic = $_POST[$cle];
$errorMSG = 1;
if (empty($clic) && 1 == $errorMSG)
{
$msg = '<p style="font-size:1.2em;margin:-2em 0 2em 20%;display:block;">vous n\'avez pas rempli tous les champs, veuillez recommençer !</p>';
break;
if ($clic == $reponse['reponse'])
{
$point[$clic] = htmlspecialchars($clic);
echo '<article class="content_img_2">';
echo '<figure>';
echo '<img src="' . $reponse['image'] . '" alt="' . $reponse['mot'] . '' . $reponse['phrase'] . '" width:"74" height="74" />';
echo '</figure>';
echo '<p><b>' . $reponse['mot'] . '' . $clic  . '' . $reponse['phrase'] . '</b></p>';
echo '</article>';
}
else
if ($clic !== $reponse['reponse'])
{
$errors[$clic] = htmlspecialchars($clic);
echo '<article class="content_img_2">';
echo '<figure>';
echo '<img src="' . $reponse['image'] . '" alt="' . $reponse['mot'] . '' . $reponse['phrase'] . '" width:"74" height="74" />';
echo '</figure>';
echo '<p><del>' . $reponse['mot'] . ' ' . $errors[$clic] . '' . $reponse['phrase'] . '</del></p><br />';
echo '<p><b>' . $reponse['mot'] . '<span style="color:green;">' . $reponse['reponse'] .'</span>'. $reponse['phrase'] . '</b></p>';
echo '</article>';
}
}
}
}
echo'<div class="clear"></div>';
echo '<br /><br />';
echo'<p style="margin-left:-3em;"><?php echo $msg; ?></p>';