summaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-05 20:33:13 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-05 20:33:13 +0200
commit657430569823f8c946eb7b6e3d2bee3ba08c87da (patch)
treedac46bea088bceba616fa380c3522390ef352451 /index.cgi
parentc95a40eb34ceaf52aa88214b53ea6eb63fe6cbbd (diff)
Use custom friendlier error messages for missing input.
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.cgi b/index.cgi
index ccc6b45..4db5f64 100755
--- a/index.cgi
+++ b/index.cgi
@@ -47,12 +47,14 @@ my $form = CGI::FormBuilder->new(
$form->field(
name => 'name',
class => 'form-control',
+ message => '- Please provide your name',
);
$form->field(
name => 'email',
id => 'inputEmail',
class => 'form-control',
placeholder => 'Email',
+ message => '- Please provide your email address',
);
$form->field(
name => 'human',