Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
new [2022/06/25 00:07] Iain Hallamnew [2022/06/25 01:36] (current) Iain Hallam
Line 1: Line 1:
 +====== Register a new singer ======
 +
 <phpwikify> <phpwikify>
-echo "Hello"; +$alphabet = '6789BCDFGHJKLMNPQRTWbcdfghjkmnpqrtwz'; 
-echo "<form>"; +$id_size = 8; 
-echo "action mail me@example.com"; +$id = ''; 
-echo "textbox id ="; echo "myID"; +while (1 <= $id_size--) { 
-echo "submit Submit"; +  $rand = mt_rand()/(mt_getrandmax() + 1); 
-echo "</form>";+  $id .= $alphabet[intval($rand*strlen($alphabet))]; 
 +
 + 
 +echo '<form>', "\n"; 
 +echo 'action  mail     membership@bristolacappella.co.uk', "\n"; 
 +echo 'usemailtemplate  committee:induction:templates:welcome', "\n"; 
 +echo 'subject "Welcome to Bristol A Cappella"', "\n"; 
 +echo 'action  template people:templates:public people:@@ID@@', "\n"; 
 +echo 'hidden  "person_id" "=' $id . '"', "\n"; 
 + 
 +echo 'fieldset "First rehearsal"', "\n"; 
 +echo 'textbox  "Given name"', "\n"; 
 +echo 'textbox  "Family name"', "\n"; 
 +echo 'select   "Name order" "given-family|family-given"', "\n"; 
 +echo 'textbox  "Pronouns (optional)" !', "\n"; 
 +echo 'email    "Email"', "\n"; 
 +echo 'date     "First rehearsal date" "=%Y-%m-%d"', "\n"; 
 +echo 'yesno    "Add full member details?"', "\n"; 
 + 
 +echo 'fieldset "Details" "Add full member details?"', "\n"; 
 +echo 'textbox  "Postcode"', "\n"; 
 +echo 'textbox  "Mobile"', "\n"; 
 +echo 'radio    "Voice part" "Unsure|Soprano|Alto|Tenor|Bass" "=Unsure"', "\n"; 
 +echo 'textbox  "How did you hear about Bristol A Cappella?"', "\n"; 
 +echo 'addpage  people:templates:internal internal', "\n"; 
 +echo 'addpage  people:templates:restricted restricted', "\n"; 
 +echo 'addpage  people:templates:restricted-committee restricted-committee', "\n"; 
 + 
 +echo 'fieldset "Finish"', "\n"; 
 +echo 'submit   "Register"', "\n"; 
 +echo '</form>', "\n";
 </phpwikify> </phpwikify>
Enjoyment · Education · Excellence