summaryrefslogtreecommitdiffstats
path: root/static/volunteer/submit/index.php
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-07-08 20:40:22 -0400
committerrsiddharth <s@ricketyspace.net>2019-07-08 20:40:22 -0400
commit4dc861f8c415d3073d0f55c0ec88a5be2cc1577a (patch)
tree1ae0da4a5709fd6ef82fa489c78ff44a2d641343 /static/volunteer/submit/index.php
parentfd41295ca50695f7db85d1ed1a23d4ba0f6211c0 (diff)
/volunteer form: Add "Meaning of life" challenge.
Diffstat (limited to 'static/volunteer/submit/index.php')
-rw-r--r--static/volunteer/submit/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/volunteer/submit/index.php b/static/volunteer/submit/index.php
index 1cfb16e..60a8406 100644
--- a/static/volunteer/submit/index.php
+++ b/static/volunteer/submit/index.php
@@ -35,6 +35,7 @@ function post() {
$n = $_POST['name'];
$e = $_POST['email'];
$m = $_POST['msg'];
+ $c = $_POST['c'];
$errors = [];
if (empty($n)) {
@@ -46,6 +47,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;