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'] + ]; +} ?>