Show bank details when user selects to pay via other means.
authorSam White <webmaster@ycra.org.uk>
Sun, 12 Sep 2021 06:55:54 +0000 (06:55 +0000)
committerSam White <webmaster@ycra.org.uk>
Sun, 12 Sep 2021 06:55:54 +0000 (06:55 +0000)
public_html/join.php

index fcb0ea8d4196085be20376e1be0dc22f35ddda2b..0b3962e51c4fc990a8029017ef433c85b470ce6b 100644 (file)
@@ -94,7 +94,21 @@ function content() {?>
     if (validate_member_data($errors, $_POST)) {
       store_member_data($_POST);?>
       <p>We have received your data. You will become a member of the YCRA after 
-      you have paid the membership fee.</p><?php
+      you have paid the membership fee of <b>£15.00</b>.</p>
+
+      <p>If you wish to pay via bank transfer, our bank details are:</p>
+      <table style="width: max-content;">
+        <tr>
+          <th style="text-align: right;">Sort code:</th>
+          <td style="text-align: left;">30-99-50</td>
+        </tr>
+        <tr>
+          <th style="text-align: right;">Account number:</th>
+          <td style="text-align: left;">00235588</td>
+        </tr>
+      </table>
+      <p>Please use <q><b>YCRA <?php esc($_POST['surname']);?></b></q> as the
+      payment reference.</p><?php
       return;
     }
     else $params = $_POST;