Add contact if membership email is forgotten for event sign-up.
authorSam White <webmaster@ycra.org.uk>
Sun, 5 Dec 2021 18:41:23 +0000 (18:41 +0000)
committerSam White <webmaster@ycra.org.uk>
Sun, 5 Dec 2021 18:41:23 +0000 (18:41 +0000)
public_html/winter-event.php

index de2a4b886a9ffebf04358847241e3564c002c56d..c00ec63506ff45af8da8249780d4e4a8347093aa 100644 (file)
@@ -9,7 +9,8 @@ require_once('includes/database.php');
 function validate_submission(&$errors, $data) {
   if (validate_email_address($errors, $data['email_address'])) {
     if (!record_exists('members', simple_where('email_address', $data['email_address'])))
-      $errors[] = 'Please enter the email address you used to sign up for membership.';
+      $errors[] = 'Please enter the email address you used to sign up for membership. '
+                . 'If you have forgotten this email address, please contact us at events@ycra.org.uk so we can assist you.';
   }
   if (empty($data['consent']) && !array_key_exists('confirm', $data))
     $errors[] = 'You must give your consent for us to process your data.';