<?php
session_start();
require_once('config.php');
if ($_COOKIE['surveyok'] and $_SESSION['surveyok']){
  echo "The survey will be completed. Please wait the redirecting.. ";
  setcookie('surveyok',null);
  if (unset($_SESSION['surveyok']) && !$_COOKIE['surveyok']){
    header('refresh: 5; URL='.$survey_continue);
  } else {
    echo "UNSETTING ERROR (400x) - Please retry again";
  }
} else {
  echo "The survey are not be completed. Please select another survey. ";
}
?>
<br>This software use RamondettiDavide Tracking

<?php
session_start();
require_once('config.php');
if ($_COOKIE['surveyok'] and $_SESSION['surveyok']){
  echo "The survey will be completed. Please wait the redirecting.. ";
  setcookie('surveyok',null);
  if (unset($_SESSION['surveyok']) && !$_COOKIE['surveyok']){
    header('refresh: 5; URL='.$survey_continue);
  } else {
    echo "UNSETTING ERROR (400x) - Please retry again";
  }
}
?>

--- 
+++ 
@@ -9,5 +9,8 @@
   } else {
     echo "UNSETTING ERROR (400x) - Please retry again";
   }
+} else {
+  echo "The survey are not be completed. Please select another survey. ";
 }
 ?>
+<br>This software use RamondettiDavide Tracking
Verify if the surveys will be completed