Commit f4c95faa authored by Nathan Peraldi's avatar Nathan Peraldi

correction of an error in $_POST treatment

parent d39704b9
......@@ -20,25 +20,29 @@ $errors = array(
$numberOfErrors = 0;
if (isset($_POST)){
include "traitementAdhesion.php";
echo "<br> début du traitement <br>";
$errors = traitement($_POST,$errors);
if (isset($_POST["firstSelection"])){
echo "<br> fin du traitement <br>";
include "traitementAdhesion.php";
echo "<br> début du traitement <br>";
$errors = traitement($_POST,$errors);
foreach ($errors as $key => $value){
echo $key . " : " . $value . "<br>";
if (strlen($value)>0){
$numberOfErrors+=1;
echo "<br> fin du traitement <br>";
foreach ($errors as $key => $value){
echo $key . " : " . $value . "<br>";
if (strlen($value)>0){
$numberOfErrors+=1;
}
}
}
echo "<br> nombre d'erreurs : " . $numberOfErrors . " <br>";
echo "<br> nombre d'erreurs : " . $numberOfErrors . " <br>";
//var_dump($errors);
//var_dump($errors);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment