summaryrefslogtreecommitdiffstats
path: root/static/volunteer/submit
diff options
context:
space:
mode:
Diffstat (limited to 'static/volunteer/submit')
-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;