From 34cd480bd5e8183d55d95b63f7e99553a040c8af Mon Sep 17 00:00:00 2001 From: Gary Date: Tue, 17 Jun 2025 11:50:49 +0100 Subject: [PATCH] reverting --- contact.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contact.php b/contact.php index fd934d6..e7a3ca4 100644 --- a/contact.php +++ b/contact.php @@ -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'] + ]; +} ?>