From 15fb6c184781ae1017f4286d5a9d2b22a871c6d0 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 8 Jul 2019 20:45:03 -0400 Subject: /conact form: Add "Meaning of life" challenge. --- static/contact/submit/index.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'static/contact/submit/index.php') diff --git a/static/contact/submit/index.php b/static/contact/submit/index.php index 0ba86d2..f2d2200 100644 --- a/static/contact/submit/index.php +++ b/static/contact/submit/index.php @@ -35,6 +35,7 @@ function post() { $n = $_POST['name']; $e = $_POST['email']; $m = $_POST['msg']; + $c = $_POST['c']; $errors = []; if (!email_valid($e)) { @@ -43,6 +44,9 @@ function post() { if (empty($m)) { $errors[] = em_fw('Message is required'); } + if ($c !== '42') { + $errors[] = '41 + 1 is not \'' . $c . '\''; + } $errors[] = 'This form is disabled for now'; $sok = true; -- cgit v1.2.3