Become a regular donator to Danakosha Finland

0) { $submitok = false; }; $accerr = 0; if($numerrors > 0) echo "

"; if($name=="") { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " name";} else { echo "Please fill in your name"; }; $accerr++;}; /* echo "
" . $numerrors . " -- " . $accerr . "
";*/ if($year=="") { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " year of birth";} else { echo "Please fill in your year of birth";}; $accerr++;}; if($profession=="") { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " profession";} else { echo "Please fill in your profession";}; $accerr++;}; if($address=="") { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " address";} else { echo "Please fill in your address";}; $accerr++;}; if($email=="") { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " email address";} else { echo "Please fill in your email address";}; $accerr++;}; if($email!="" && !filter_var($email, FILTER_VALIDATE_EMAIL)) { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " a valid email address";} else { echo "Please fill in a valid email address";}; $accerr++;}; if($phone=="") { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " phone number";} else { echo "Please fill in your phone number";}; $accerr++;}; if($select=="") { if($accerr > 0) { if($accerr == $numerrors - 1) { echo " and"; } else { echo ","; }; echo " the amount of monthly donation";} else { echo "Please fill in the amount of monthly donation";}; $accerr++;}; if($numerrors > 0) echo ".

"; }; if ($submitok) { $message = "I wish to become a supporting member of Danakosha Finland" . "\n\nName: " . $name . "\nYear of birth: " . $year . "\nProfession or status: " . $profession . "\nPostal address: " . $address . "\nEmail address: " . $email . "\nPhone: " . $phone . "\n\n" . "Monthly donation: " . $select . "\n\nDate: " . date("d.m.Y") . "\n"; echo "You have been registered as a supporting member of Danakosha Finland. Thank you!"; mail("nyingmapa.fi@gmail.com", "Supporting member form for " . trim($name, "\n\r\0"), $message, "From: supporting.form"); } else { echo "
"; echo "If you wish to become a supporting member of Danakosha Finland, please fill in the following form. "; echo "If you wish to become a member of Tulku Dakpa Rinpoche's Danakosha study group, please fill in "; echo "the online membership application form. "; echo "

"; echo "
Full name:
\n"; echo "
Year of birth:
\n"; echo "
Profession or status:
\n"; echo "
Postal address:
\n"; echo "
Email address:
\n"; echo "
Phone:
"; echo "

I will offer Danakosha euros "; echo "monthly through bank. Account at Aktia Bank 405530-2137451.\n"; echo "

"; echo ""; /* echo " I acknowledge that by submitting this form I commit to ...

"; */ echo "

"; echo "

"; } ?>