reverting

This commit is contained in:
Gary 2025-06-17 11:50:49 +01:00
parent da306f598b
commit 34cd480bd5

View File

@ -48,7 +48,13 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
}
}
// Generate a new CAPTCHA for the next submission AFTER processing the form
$_SESSION['captcha'] = [
'num1' => rand(1, 10),
'num2' => rand(1, 10),
'answer' => $_SESSION['captcha']['num1'] + $_SESSION['captcha']['num2']
];
}
?>