coordinator.php 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" href="css/style.css">
  6. <title>Tuvute Pamoja</title>
  7. </head>
  8. <body>
  9. <?php
  10. // database information
  11. $servername = "";
  12. $username = "";
  13. $password = "";
  14. $dbname = "";
  15. // define variables and set to empty values
  16. $nameErr = $emailErr = $telErr = $langErr = $writingErr = $progErr = "";
  17. $motivErr = $contribsourceErr = $otherErr = "";
  18. $name = $email = $countryCode = $tel = $lang = $writing = $prog = "";
  19. $motiv = $contribsource = $other = "";
  20. $code = "";
  21. if ($_SERVER["REQUEST_METHOD"] == "POST") {
  22. if (empty($_POST["name"])) {
  23. $nameErr = "Name is required";
  24. } else {
  25. $name = test_input($_POST["name"]);
  26. }
  27. if (empty($_POST["email"])) {
  28. $emailErr = "Email is required";
  29. } else {
  30. $email = test_input($_POST["email"]);
  31. // check if e-mail address is well-formed
  32. if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
  33. $emailErr = "Invalid email format";
  34. }
  35. }
  36. $countryCode = test_input($_POST["countryCode"]);
  37. if (empty($_POST["tel"])) {
  38. $telErr = "Telephone is required";
  39. } else {
  40. $tel = test_input($_POST["tel"]);
  41. }
  42. if (empty($_POST["lang"])) {
  43. $langErr = "At least one language you can coordinate is required";
  44. } else {
  45. $lang = test_input($_POST["lang"]);
  46. }
  47. if (empty($_POST["writing"])) {
  48. $writingErr = "Please add information on writing experience in the language(s) you can coordinate";
  49. } else {
  50. $writing = test_input($_POST["writing"]);
  51. }
  52. if (empty($_POST["prog"])) {
  53. $progErr = "Please add artificial intelligence, natural language processing or programming experience";
  54. } else {
  55. $prog = test_input($_POST["prog"]);
  56. }
  57. if (empty($_POST["motiv"])) {
  58. $motivErr = "Please add motivation";
  59. } else {
  60. $motiv = test_input($_POST["motiv"]);
  61. }
  62. if (empty($_POST["contribsource"])) {
  63. $contribsourceErr = "Please indicate likely source of contributors";
  64. } else {
  65. $contribsource = test_input($_POST["contribsource"]);
  66. }
  67. if (empty($_POST["other"])) {
  68. $other = "";
  69. } else {
  70. $other = test_input($_POST["other"]);
  71. }
  72. }
  73. function test_input($data) {
  74. $data = trim($data);
  75. $data = stripslashes($data);
  76. $data = htmlspecialchars($data);
  77. return $data;
  78. }
  79. ?>
  80. <ul>
  81. <li><a id="home" href="index.php">Home</a></li>
  82. <li><a id="original" href="submit.php">Original Story Submission</a></li>
  83. <li><a id="translation" href="submittranslation.php">Translated Story Submission</a></li>
  84. <li><a id="stories" href="displaystories.php">Submitted Stories</a></li>
  85. <li><a id="statistics" href="submissionstatistics.php">Submissions per Language</a></li>
  86. <li><a id="coordinate" class="active" href="#">Coordinator Application</a></li>
  87. <li><a id="contact" href="contact.php">Contact</a></li>
  88. <li><a id="resources" href="resources.php">Resources</a></li>
  89. <li><a id="flyers" href="flyers.php">Flyers</a></li>
  90. <li><a id="faq" href="faq.php">Frequently Asked Questions</a></li>
  91. <li><a id="privacy" href="privacy.php">Privacy</a></li>
  92. </ul>
  93. <header>
  94. <h1>Tuvute Pamoja
  95. <a href="https://deeplearningindaba.com">
  96. <img src="images/deeplearningindaba.svg" alt="Deeplearning Indaba" style="height:60px">
  97. </a> </h1>
  98. </header>
  99. <section id="description">
  100. <h2>Indaba X: African Language Short Story Competition</h2>
  101. <p>The aim of this project is to create a corpus of short stories in
  102. African languages through an online competition. The stories will be
  103. evaluated by people who have made a submission. Up to 400 winning stories
  104. will receive a monetary reward.</p>
  105. </section>
  106. <section id="schedule">
  107. <h3>Schedule</h3>
  108. <table class="center">
  109. <thead>
  110. <tr>
  111. <td>Date</td><td>Activity</td>
  112. </tr>
  113. </thead>
  114. <tbody>
  115. <tr>
  116. <td>3 October</td><td>Language coordinator applications open</td>
  117. </tr>
  118. <tr>
  119. <td><del>9</del><del>13</del>16 October</td><td>Language coordinator applications close</td>
  120. </tr>
  121. </tbody>
  122. </table>
  123. </section>
  124. <section id="coordinator">
  125. <h3>Coordinator application</h3>
  126. <p>Coordinators are unpaid volunteer positions where a person aids the competition organizers with advertising for
  127. entries in a particular African language and ensuring that a localized web user interface is available for
  128. the choosen African language. Submissions will only be eligble to win prizes in languages with coordinators.
  129. Language coordinators should have knowledge of the choosen language, they should indicate their motivation for
  130. obtaining a high quality corpus and potential contributors they will solicit short stories from.</p>
  131. <!--
  132. <span class="error">* required field</span>
  133. <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
  134. <p>
  135. <label for="name">What is your name?</label><span class="error">* </span><br>
  136. <span class="error"> <?php echo $nameErr;?></span><br>
  137. <input id="name" type="text" name="name" maxlength="100"><br>
  138. </p>
  139. <p>
  140. <label for="email">What is your e-mail address?</label><span class="error">*</span><br>
  141. <span class="error"><?php echo $emailErr;?></span><br>
  142. <input type="email" id="email" name="email"><br>
  143. </p>
  144. <p>
  145. <label for="tel">What is your telephone number?</label><span class="error">*</span><br>
  146. <span class="error"><?php echo $telErr;?></span><br> -->
  147. <!-- Modified from https://gist.github.com/NicholasKimuli/2b167ca1c6ce03cb860e3f89d17db1eb
  148. Bonaire, Saba and Sint Eustatius may need a future flag update -->
  149. <!--
  150. <select class="input-block-level" id="countryCode" name="countryCode">
  151. <option data-countryCode="DZ" value="213">&#x1F1E9&#x1F1FF Algeria (+213)</option>
  152. <option data-countryCode="AO" value="244">&#x1F1E6&#x1F1F4 Angola (+244)</option>
  153. <option data-countryCode="BJ" value="229">&#x1F1E7&#x1F1EF Benin (+229)</option>
  154. <option data-countryCode="BW" value="267">&#x1F1E7&#x1F1FC Botswana (+267)</option>
  155. <option data-countryCode="BF" value="226">&#x1F1E7&#x1F1EB Burkina Faso (+226)</option>
  156. <option data-countryCode="BI" value="257">&#x1F1E7&#x1F1EE Burundi (+257)</option>
  157. <option data-countryCode="CM" value="237">&#x1F1E8&#x1F1F2 Cameroon (+237)</option>
  158. <option data-countryCode="CV" value="238">&#x1F1E8&#x1F1FB Cape Verde Islands (+238)</option>
  159. <option data-countryCode="CF" value="236">&#x1F1E8&#x1F1EB Central African Republic (+236)</option>
  160. <option data-countryCode="TD" value="235">&#x1F1F9&#x1F1E9 Chad (+235)</option>
  161. <option data-countryCode="KM" value="269">&#x1F1F0&#x1F1F2 Comoros (+269)</option>
  162. <option data-countryCode="CG" value="242">&#x1F1E8&#x1F1EC Congo (+242)</option>
  163. <option data-countryCode="CD" value="243">&#x1F1E8&#x1F1E9 Congo, Democratic Republic of the (+243)</option>
  164. <option data-countryCode="CI" value="225">&#x1F1E8&#x1F1EE Cote d'Ivoire (+225)</option>
  165. <option data-countryCode="DJ" value="253">&#x1F1E9&#x1F1EF Djibouti (+253)</option>
  166. <option data-countryCode="EG" value="20">&#x1F1EA&#x1F1EC Egypt (+20)</option>
  167. <option data-countryCode="GQ" value="240">&#x1F1EC&#x1F1F6 Equatorial Guinea (+240)</option>
  168. <option data-countryCode="ER" value="291">&#x1F1EA&#x1F1F7 Eritrea (+291)</option>
  169. <option data-countryCode="SZ" value="268">&#x1F1F8&#x1F1FF Eswatini (+268)</option>
  170. <option data-countryCode="ET" value="251">&#x1F1EA&#x1F1F9 Ethiopia (+251)</option>
  171. <option data-countryCode="GA" value="241">&#x1F1EC&#x1F1E6 Gabon (+241)</option>
  172. <option data-countryCode="GM" value="220">&#x1F1EC&#x1F1F2 Gambia (+220)</option>
  173. <option data-countryCode="GH" value="233">&#x1F1EC&#x1F1ED Ghana (+233)</option>
  174. <option data-countryCode="GN" value="224">&#x1F1EC&#x1F1F3 Guinea (+224)</option>
  175. <option data-countryCode="GW" value="245">&#x1F1EC&#x1F1FC Guinea - Bissau (+245)</option>
  176. <option data-countryCode="KE" value="254">&#x1F1F0&#x1F1EA Kenya (+254)</option>
  177. <option data-countryCode="LS" value="266">&#x1F1F1&#x1F1F8 Lesotho (+266)</option>
  178. <option data-countryCode="LR" value="231">&#x1F1F1&#x1F1F7 Liberia (+231)</option>
  179. <option data-countryCode="LY" value="218">&#x1F1F1&#x1F1FE Libya (+218)</option>
  180. <option data-countryCode="MG" value="261">&#x1F1F2&#x1F1EC Madagascar (+261)</option>
  181. <option data-countryCode="MW" value="265">&#x1F1F2&#x1F1FC Malawi (+265)</option>
  182. <option data-countryCode="ML" value="223">&#x1F1F2&#x1F1F1 Mali (+223)</option>
  183. <option data-countryCode="MR" value="222">&#x1F1F2&#x1F1F7 Mauritania (+222)</option>
  184. <option data-countryCode="MU" value="230">&#x1F1F2&#x1F1FA Mauritius (+230)</option>
  185. <option data-countryCode="MA" value="212">&#x1F1F2&#x1F1E6 Morocco (+212)</option>
  186. <option data-countryCode="MZ" value="258">&#x1F1F2&#x1F1FF Mozambique (+258)</option>
  187. <option data-countryCode="NA" value="264">&#x1F1F3&#x1F1E6 Namibia (+264)</option>
  188. <option data-countryCode="NE" value="227">&#x1F1F3&#x1F1EA Niger (+227)</option>
  189. <option data-countryCode="NG" value="234">&#x1F1F3&#x1F1EC Nigeria (+234)</option>
  190. <option data-countryCode="RE" value="262">&#x1F1F7&#x1F1EA Réunion (+262)</option>
  191. <option data-countryCode="RW" value="250">&#x1F1F7&#x1F1FC Rwanda (+250)</option>
  192. <option data-countryCode="ST" value="239">&#x1F1F8&#x1F1F9 São Tomé &amp; Principe (+239)</option>
  193. <option data-countryCode="SN" value="221">&#x1F1F8&#x1F1F3 Senegal (+221)</option>
  194. <option data-countryCode="SC" value="248">&#x1F1F8&#x1F1E8 Seychelles (+248)</option>
  195. <option data-countryCode="SL" value="232">&#x1F1F8&#x1F1F1 Sierra Leone (+232)</option>
  196. <option data-countryCode="SO" value="252">&#x1F1F8&#x1F1F4 Somalia (+252)</option>
  197. <option data-countryCode="ZA" value="27">&#x1F1FF&#x1F1E6 South Africa (+27)</option>
  198. <option data-countryCode="SS" value="211">&#x1F1F8&#x1F1F8 South Sudan (+211)</option>
  199. <option data-countryCode="SD" value="249">&#x1F1F8&#x1F1E9 Sudan (+249)</option>
  200. <option data-countryCode="TZ" value="255">&#x1F1F9&#x1F1FF Tanzania (+255)</option>
  201. <option data-countryCode="TG" value="228">&#x1F1F9&#x1F1EC Togo (+228)</option>
  202. <option data-countryCode="TN" value="216">&#x1F1F9&#x1F1F3 Tunisia (+216)</option>
  203. <option data-countryCode="UG" value="256">&#x1F1FA&#x1F1EC Uganda (+256)</option>
  204. <option data-countryCode="EH" value="967">&#x1F1EA&#x1F1ED Western Sahara (+212)</option>
  205. <option data-countryCode="ZM" value="260">&#x1F1FF&#x1F1F2 Zambia (+260)</option>
  206. <option data-countryCode="ZW" value="263">&#x1F1FF&#x1F1FC Zimbabwe (+263)</option>
  207. <optgroup label="Other countries">
  208. <option data-countryCode="AF" value="93">&#x1F1E6&#x1F1EB Afghanistan (+93)</option>
  209. <option data-countryCode="AL" value="355">&#x1F1E6&#x1F1FD Albania (+355)</option>
  210. <option data-countryCode="AD" value="376">&#x1F1E6&#x1F1E9 Andorra (+376)</option>
  211. <option data-countryCode="AI" value="1264">&#x1F1E6&#x1F1EE Anguilla (+1264)</option>
  212. <option data-countryCode="AG" value="1268">&#x1F1E6&#x1F1EC Antigua &amp; Barbuda (+1268)</option>
  213. <option data-countryCode="AR" value="54">&#x1F1E6&#x1F1F7 Argentina (+54)</option>
  214. <option data-countryCode="AM" value="374">&#x1F1E6&#x1F1F2 Armenia (+374)</option>
  215. <option data-countryCode="AW" value="297">&#x1F1E6&#x1F1FC Aruba (+297)</option>
  216. <option data-countryCode="AC" value="247">&#x1F1E6&#x1F1E8 Ascension Island (+297)</option>
  217. <option data-countryCode="AU" value="61">&#x1F1E6&#x1F1FA Australia (+61)</option>
  218. <option data-countryCode="AT" value="43">&#x1F1E6&#x1F1F9 Austria (+43)</option>
  219. <option data-countryCode="AZ" value="994">&#x1F1E6&#x1F1FF Azerbaijan (+994)</option>
  220. <option data-countryCode="BS" value="1242">&#x1F1E7&#x1F1F8 Bahamas (+1242)</option>
  221. <option data-countryCode="BH" value="973">&#x1F1E7&#x1F1ED Bahrain (+973)</option>
  222. <option data-countryCode="BD" value="880">&#x1F1E7&#x1F1E9 Bangladesh (+880)</option>
  223. <option data-countryCode="BB" value="1246">&#x1F1E7&#x1F1E7 Barbados (+1246)</option>
  224. <option data-countryCode="BY" value="375">&#x1F1E7&#x1F1FE Belarus (+375)</option>
  225. <option data-countryCode="BE" value="32">&#x1F1E7&#x1F1EA Belgium (+32)</option>
  226. <option data-countryCode="BZ" value="501">&#x1F1E7&#x1F1FF Belize (+501)</option>
  227. <option data-countryCode="BM" value="1441">&#x1F1E7&#x1F1F2 Bermuda (+1441)</option>
  228. <option data-countryCode="BT" value="975">&#x1F1E7&#x1F1F9 Bhutan (+975)</option>
  229. <option data-countryCode="BO" value="591">&#x1F1E7&#x1F1F4 Bolivia (+591)</option>
  230. <option data-countryCode="BQ" value="599">&#x1F1E7&#x1F1F6 Bonaire, Saba and Sint Eustatius (+599)</option>
  231. <option data-countryCode="BA" value="387">&#x1F1E7&#x1F1E6 Bosnia Herzegovina (+387)</option>
  232. <option data-countryCode="BR" value="55">&#x1F1E7&#x1F1F7 Brazil (+55)</option>
  233. <option data-countryCode="IO" value="246">&#x1F1EE&#x1F1F4 British Indian Ocean Territory (+246)</option>
  234. <option data-countryCode="BN" value="673">&#x1F1E7&#x1F1F3 Brunei (+673)</option>
  235. <option data-countryCode="BG" value="359">&#x1F1E7&#x1F1EC Bulgaria (+359)</option>
  236. <option data-countryCode="KH" value="855">&#x1F1F0&#x1F1ED Cambodia (+855)</option>
  237. <option data-countryCode="CA" value="1">&#x1F1E8&#x1F1E6 Canada (+1)</option>
  238. <option data-countryCode="KY" value="1345">&#x1F1F0&#x1F1FE Cayman Islands (+1345)</option>
  239. <option data-countryCode="CL" value="56">&#x1F1E8&#x1F1F1 Chile (+56)</option>
  240. <option data-countryCode="CN" value="86">&#x1F1E8&#x1F1F3 China (+86)</option>
  241. <option data-countryCode="CO" value="57">&#x1F1E8&#x1F1F4 Colombia (+57)</option>
  242. <option data-countryCode="CK" value="682">&#x1F1E8&#x1F1F0 Cook Islands (+682)</option>
  243. <option data-countryCode="CR" value="506">&#x1F1E8&#x1F1F7 Costa Rica (+506)</option>
  244. <option data-countryCode="HR" value="385">&#x1F1ED&#x1F1F7 Croatia (+385)</option>
  245. <option data-countryCode="CU" value="53">&#x1F1E8&#x1F1FA Cuba (+53)</option>
  246. <option data-countryCode="CW" value="5999">&#x1F1E8&#x1F1FC Curaçao (+5999)</option>
  247. <option data-countryCode="CY" value="357">&#x1F1E8&#x1F1FE Cyprus (+357)</option>
  248. <option data-countryCode="CZ" value="420">&#x1F1E8&#x1F1FF Czech Republic (+420)</option>
  249. <option data-countryCode="DK" value="45">&#x1F1E9&#x1F1F0 Denmark (+45)</option>
  250. <option data-countryCode="DM" value="1767">&#x1F1E9&#x1F1F2 Dominica (+1767)</option>
  251. <option data-countryCode="DO" value="1809">&#x1F1E9&#x1F1F4 Dominican Republic (+1809)</option>
  252. <option data-countryCode="TL" value="670">&#x1F1F9&#x1F1F1 East Timor (+670)</option>
  253. <option data-countryCode="EC" value="593">&#x1F1EA&#x1F1E8 Ecuador (+593)</option>
  254. <option data-countryCode="SV" value="503">&#x1F1F8&#x1F1FB El Salvador (+503)</option>
  255. <option data-countryCode="EE" value="372">&#x1F1EA&#x1F1EA Estonia (+372)</option>
  256. <option data-countryCode="FK" value="500">&#x1F1EB&#x1F1F0 Falkland Islands (+500)</option>
  257. <option data-countryCode="FO" value="298">&#x1F1EB&#x1F1F4 Faroe Islands (+298)</option>
  258. <option data-countryCode="FJ" value="679">&#x1F1EB&#x1F1EF Fiji (+679)</option>
  259. <option data-countryCode="FI" value="358">&#x1F1EB&#x1F1EE Finland (+358)</option>
  260. <option data-countryCode="FR" value="33">&#x1F1EB&#x1F1F7 France (+33)</option>
  261. <option data-countryCode="GF" value="594">&#x1F1EC&#x1F1EB French Guiana (+594)</option>
  262. <option data-countryCode="PF" value="689">&#x1F1F5&#x1F1EB French Polynesia (+689)</option>
  263. <option data-countryCode="GE" value="995">&#x1F1EC&#x1F1EA Georgia (+995)</option>
  264. <option data-countryCode="DE" value="49">&#x1F1E9&#x1F1EA Germany (+49)</option>
  265. <option data-countryCode="GI" value="350">&#x1F1EC&#x1F1EE Gibraltar (+350)</option>
  266. <option data-countryCode="GR" value="30">&#x1F1EC&#x1F1F7 Greece (+30)</option>
  267. <option data-countryCode="GL" value="299">&#x1F1EC&#x1F1F1 Greenland (+299)</option>
  268. <option data-countryCode="GD" value="1473">&#x1F1EC&#x1F1E9 Grenada (+1473)</option>
  269. <option data-countryCode="GP" value="590">&#x1F1EC&#x1F1F5 Guadeloupe (+590)</option>
  270. <option data-countryCode="GU" value="1671">&#x1F1EC&#x1F1FA Guam (+1671)</option>
  271. <option data-countryCode="GT" value="502">&#x1F1EC&#x1F1F9 Guatemala (+502)</option>
  272. <option data-countryCode="GY" value="592">&#x1F1EC&#x1F1FE Guyana (+592)</option>
  273. <option data-countryCode="HT" value="509">&#x1F1ED&#x1F1F9 Haiti (+509)</option>
  274. <option data-countryCode="HN" value="504">&#x1F1ED&#x1F1F3 Honduras (+504)</option>
  275. <option data-countryCode="HK" value="852">&#x1F1ED&#x1F1F0 Hong Kong (+852)</option>
  276. <option data-countryCode="HU" value="36">&#x1F1ED&#x1F1FA Hungary (+36)</option>
  277. <option data-countryCode="IS" value="354">&#x1F1EE&#x1F1F8 Iceland (+354)</option>
  278. <option data-countryCode="IN" value="91">&#x1F1EE&#x1F1F3 India (+91)</option>
  279. <option data-countryCode="ID" value="62">&#x1F1EE&#x1F1E9 Indonesia (+62)</option>
  280. <option data-countryCode="IR" value="98">&#x1F1EE&#x1F1F7 Iran (+98)</option>
  281. <option data-countryCode="IQ" value="964">&#x1F1EE&#x1F1F6 Iraq (+964)</option>
  282. <option data-countryCode="IE" value="353">&#x1F1EE&#x1F1EA Ireland (+353)</option>
  283. <option data-countryCode="IL" value="972">&#x1F1EE&#x1F1F1 Israel (+972)</option>
  284. <option data-countryCode="IT" value="39">&#x1F1EE&#x1F1F9 Italy (+39)</option>
  285. <option data-countryCode="JM" value="1876">&#x1F1EF&#x1F1F2 Jamaica (+1876)</option>
  286. <option data-countryCode="JP" value="81">&#x1F1EF&#x1F1F5 Japan (+81)</option>
  287. <option data-countryCode="JO" value="962">&#x1F1EF&#x1F1F4 Jordan (+962)</option>
  288. <option data-countryCode="KZ" value="7">&#x1F1F0&#x1F1FF Kazakhstan (+7)</option>
  289. <option data-countryCode="KI" value="686">&#x1F1F0&#x1F1EE Kiribati (+686)</option>
  290. <option data-countryCode="KP" value="850">&#x1F1F0&#x1F1F5 Korea, North (+850)</option>
  291. <option data-countryCode="KR" value="82">&#x1F1F0&#x1F1F7 Korea, South (+82)</option>
  292. <option data-countryCode="XK" value="383">&#x1F1FD&#x1F1F0 Kosovo (+383)</option>
  293. <option data-countryCode="KW" value="965">&#x1F1F0&#x1F1FC Kuwait (+965)</option>
  294. <option data-countryCode="KG" value="996">&#x1F1F0&#x1F1EC Kyrgyzstan (+996)</option>
  295. <option data-countryCode="LA" value="856">&#x1F1F1&#x1F1E6 Laos (+856)</option>
  296. <option data-countryCode="LV" value="371">&#x1F1F1&#x1F1FB Latvia (+371)</option>
  297. <option data-countryCode="LB" value="961">&#x1F1F1&#x1F1E7 Lebanon (+961)</option>
  298. <option data-countryCode="LI" value="423">&#x1F1F1&#x1F1EE Liechtenstein (+423)</option>
  299. <option data-countryCode="LT" value="370">&#x1F1F1&#x1F1F9 Lithuania (+370)</option>
  300. <option data-countryCode="LU" value="352">&#x1F1F1&#x1F1FA Luxembourg (+352)</option>
  301. <option data-countryCode="MO" value="853">&#x1F1F2&#x1F1F4 Macao (+853)</option>
  302. <option data-countryCode="MK" value="389">&#x1F1F2&#x1F1F0 Macedonia (+389)</option>
  303. <option data-countryCode="MY" value="60">&#x1F1F2&#x1F1FE Malaysia (+60)</option>
  304. <option data-countryCode="MV" value="960">&#x1F1F2&#x1F1FB Maldives (+960)</option>
  305. <option data-countryCode="MT" value="356">&#x1F1F2&#x1F1F9 Malta (+356)</option>
  306. <option data-countryCode="MH" value="692">&#x1F1F2&#x1F1ED Marshall Islands (+692)</option>
  307. <option data-countryCode="MQ" value="596">&#x1F1F2&#x1F1F6 Martinique (+596)</option>
  308. <option data-countryCode="YT" value="262">&#x1F1FE&#x1F1F9 Mayotte (+262)</option>
  309. <option data-countryCode="MX" value="52">&#x1F1F2&#x1F1FD Mexico (+52)</option>
  310. <option data-countryCode="FM" value="691">&#x1F1EB&#x1F1F2 Micronesia (+691)</option>
  311. <option data-countryCode="MD" value="373">&#x1F1F2&#x1F1E9 Moldova (+373)</option>
  312. <option data-countryCode="MC" value="377">&#x1F1F2&#x1F1E8 Monaco (+377)</option>
  313. <option data-countryCode="MN" value="976">&#x1F1F2&#x1F1F3 Mongolia (+976)</option>
  314. <option data-countryCode="ME" value="382">&#x1F1F2&#x1F1EA Montenegro (+382)</option>
  315. <option data-countryCode="MS" value="1664">&#x1F1F2&#x1F1F8 Montserrat (+1664)</option>
  316. <option data-countryCode="MN" value="95">&#x1F1F2&#x1F1F2 Myanmar (+95)</option>
  317. <option data-countryCode="NR" value="674">&#x1F1F3&#x1F1F7 Nauru (+674)</option>
  318. <option data-countryCode="NP" value="977">&#x1F1F3&#x1F1F5 Nepal (+977)</option>
  319. <option data-countryCode="NL" value="31">&#x1F1F3&#x1F1F1 Netherlands (+31)</option>
  320. <option data-countryCode="NC" value="687">&#x1F1F3&#x1F1E8 New Caledonia (+687)</option>
  321. <option data-countryCode="NZ" value="64">&#x1F1F3&#x1F1FF New Zealand (+64)</option>
  322. <option data-countryCode="NI" value="505">&#x1F1F3&#x1F1EE Nicaragua (+505)</option>
  323. <option data-countryCode="NU" value="683">&#x1F1F3&#x1F1FA Niue (+683)</option>
  324. <option data-countryCode="NF" value="672">&#x1F1F3&#x1F1EB Norfolk Islands (+67
  325. <option data-countryCode="NP" value="1670">&#x1F1F2&#x1F1F5 Northern Mariana Islands (+1670)</option>
  326. <option data-countryCode="NO" value="47">&#x1F1F3&#x1F1F4 Norway (+47)</option>
  327. <option data-countryCode="OM" value="968">&#x1F1F4&#x1F1F2 Oman (+968)</option>
  328. <option data-countryCode="PW" value="680">&#x1F1F5&#x1F1FC Palau (+680)</option>
  329. <option data-countryCode="PS" value="970">&#x1F1F5&#x1F1F8 Palestine (+970)</option>
  330. <option data-countryCode="PK" value="92">&#x1F1F5&#x1F1F0 Pakistan (+92)</option>
  331. <option data-countryCode="PA" value="507">&#x1F1F5&#x1F1E6 Panama (+507)</option>
  332. <option data-countryCode="PG" value="675">&#x1F1F5&#x1F1EC Papua New Guinea (+675)</option>
  333. <option data-countryCode="PY" value="595">&#x1F1F5&#x1F1FE Paraguay (+595)</option>
  334. <option data-countryCode="PE" value="51">&#x1F1F5&#x1F1EA Peru (+51)</option>
  335. <option data-countryCode="PH" value="63">&#x1F1F5&#x1F1ED Philippines (+63)</option>
  336. <option data-countryCode="PL" value="48">&#x1F1F5&#x1F1F1 Poland (+48)</option>
  337. <option data-countryCode="PT" value="351">&#x1F1F5&#x1F1F9 Portugal (+351)</option>
  338. <option data-countryCode="PR" value="1787">&#x1F1F5&#x1F1F7 Puerto Rico (+1787)</option>
  339. <option data-countryCode="QA" value="974">&#x1F1F6&#x1F1E6 Qatar (+974)</option>
  340. <option data-countryCode="RO" value="40">&#x1F1F7&#x1F1F4 Romania (+40)</option>
  341. <option data-countryCode="RU" value="7">&#x1F1F7&#x1F1FA Russia (+7)</option>
  342. <option data-countryCode="SH" value="290">&#x1F1F8&#x1F1ED Saint Helena (+290)</option>
  343. <option data-countryCode="KN" value="1869">&#x1F1F0&#x1F1F3 Saint Kitts and Nevis (+1869)</option>
  344. <option data-countryCode="SC" value="1758">&#x1F1F1&#x1F1E8 Saint Lucia (+1758)</option>
  345. <option data-countryCode="PM" value="508">&#x1F1F5&#x1F1F2 Saint Pierre and Miquelon (+508)</option>
  346. <option data-countryCode="WS" value="685">&#x1F1FC&#x1F1F8 Samoa (+685)</option>
  347. <option data-countryCode="SM" value="378">&#x1F1F8&#x1F1F2 San Marino (+378)</option>
  348. <option data-countryCode="SA" value="966">&#x1F1F8&#x1F1E6 Saudi Arabia (+966)</option>
  349. <option data-countryCode="CS" value="381">&#x1F1F7&#x1F1F8 Serbia (+381)</option>
  350. <option data-countryCode="SG" value="65">&#x1F1F8&#x1F1EC Singapore (+65)</option>
  351. <option data-countryCode="SK" value="421">&#x1F1F8&#x1F1F0 Slovakia (+421)</option>
  352. <option data-countryCode="SI" value="386">&#x1F1F8&#x1F1EE Slovenia (+386)</option>
  353. <option data-countryCode="SB" value="677">&#x1F1F8&#x1F1E7 Solomon Islands (+677)</option>
  354. <option data-countryCode="ES" value="34">&#x1F1EA&#x1F1F8 Spain (+34)</option>
  355. <option data-countryCode="LK" value="94">&#x1F1F1&#x1F1F0 Sri Lanka (+94)</option>
  356. <option data-countryCode="SR" value="597">&#x1F1F8&#x1F1F7 Suriname (+597)</option>
  357. <option data-countryCode="SE" value="46">&#x1F1F8&#x1F1EA Sweden (+46)</option>
  358. <option data-countryCode="CH" value="41">&#x1F1E8&#x1F1ED Switzerland (+41)</option>
  359. <option data-countryCode="SI" value="963">&#x1F1F8&#x1F1FE Syria (+963)</option>
  360. <option data-countryCode="TW" value="886">&#x1F1F9&#x1F1FC Taiwan (+886)</option>
  361. <option data-countryCode="TJ" value="992">&#x1F1F9&#x1F1EF Tajikstan (+992)</option>
  362. <option data-countryCode="TH" value="66">&#x1F1F9&#x1F1ED Thailand (+66)</option>
  363. <option data-countryCode="TK" value="90">&#x1F1F9&#x1F1F0 Tokelau (+690)</option>
  364. <option data-countryCode="TO" value="676">&#x1F1F9&#x1F1F4 Tonga (+676)</option>
  365. <option data-countryCode="TT" value="1868">&#x1F1F9&#x1F1F9 Trinidad &amp; Tobago (+1868)</option>
  366. <option data-countryCode="TR" value="90">&#x1F1F9&#x1F1F7 Turkey (+90)</option>
  367. <option data-countryCode="TM" value="993">&#x1F1F9&#x1F1F2 Turkmenistan (+993)</option>
  368. <option data-countryCode="TC" value="1649">&#x1F1F9&#x1F1E8 Turks &amp; Caicos Islands (+1649)</option>
  369. <option data-countryCode="TV" value="688">&#x1F1F9&#x1F1FB Tuvalu (+688)</option>
  370. <option data-countryCode="UA" value="380">&#x1F1FA&#x1F1E6 Ukraine (+380)</option>
  371. <option data-countryCode="AE" value="971">&#x1F1E6&#x1F1EA United Arab Emirates (+971)</option>
  372. <option data-countryCode="GB" value="44">&#x1F1EC&#x1F1E7 United Kingdom (+44)</option>
  373. <option data-countryCode="US" value="1">&#x1F1FA&#x1F1F8 United States of America (+1)</option>
  374. <option data-countryCode="UY" value="598">&#x1F1FA&#x1F1FE Uruguay (+598)</option>
  375. <option data-countryCode="UZ" value="998">&#x1F1FA&#x1F1FF Uzbekistan (+998)</option>
  376. <option data-countryCode="VU" value="678">&#x1F1FB&#x1F1FA Vanuatu (+678)</option>
  377. <option data-countryCode="VA" value="39">&#x1F1FB&#x1F1E6 Vatican City (+39)</option>
  378. <option data-countryCode="VE" value="58">&#x1F1FB&#x1F1EA Venezuela (+58)</option>
  379. <option data-countryCode="VN" value="84">&#x1F1FB&#x1F1F3 Vietnam (+84)</option>
  380. <option data-countryCode="VG" value="1284">&#x1F1FB&#x1F1EC Virgin Islands - British (+1284)</option>
  381. <option data-countryCode="VI" value="1340">&#x1F1FB&#x1F1EE Virgin Islands - US (+1340)</option>
  382. <option data-countryCode="WF" value="681">&#x1F1FC&#x1F1EB Wallis &amp; Futuna (+681)</option>
  383. <option data-countryCode="YE" value="967">&#x1F1FE&#x1F1EA Yemen (+967)</option>
  384. </optgroup>
  385. </select>
  386. <input type="tel" id="tel" name="tel"><br>
  387. <p>
  388. <label for="lang">What language can you coordinate?</label><span class="error">*</span><br>
  389. <span class="error"> <?php echo $langErr;?></span><br>
  390. <textarea id="lang" type="text" name="lang" maxlength="100" rows="5"></textarea><br>
  391. </p>
  392. <p>
  393. <label for="writing">Writing experience in chosen language?</label><span class="error">*</span><br>
  394. <span class="error"><?php echo $writingErr;?></span><br>
  395. <textarea id="writing" type="text" name="writing" maxlength="100" rows="2"></textarea><br>
  396. </p>
  397. <p>
  398. <label for="prog">What is your machine learning, natural language processing or programming experience?</label><span class="error">*</span> <br>
  399. <span class="error"><?php echo $progErr;?></span><br>
  400. <textarea id="prog" type="text" name="prog" maxlength="100" rows="2"></textarea><br>
  401. </p>
  402. <p>
  403. <label for="motiv">What is your motivation for being a coordinator?</label><span class="error">*</span><br>
  404. <span class="error"><?php echo $motivErr;?></span><br>
  405. <textarea id="motiv" name="motiv" maxlength="140" rows="5"></textarea><br>
  406. </p>
  407. <p>
  408. <label for="contribsource">What is your source of potential contributors (for example institutions, groups, networks)?</label><span class="error">*</span><br>
  409. <span class="error"><?php echo $contribsourceErr;?></span><br>
  410. <textarea id="contribsource" name="contribsource" maxlength="140" rows="5"></textarea><br>
  411. </p>
  412. <p>
  413. <label for="other">Any other questions or suggestions?</label><br>
  414. <textarea id="other" name="other" maxlength="140" rows="5"></textarea>
  415. </p>
  416. <p>
  417. <input type="submit" name="submit" value="Submit">
  418. </p>
  419. </form>
  420. -->
  421. <?php
  422. // Check for submission of entered data
  423. if (isset($_POST['submit'])){
  424. if ( ( $nameErr != "") || ( $emailErr != "") || ( $telErr != "") ||
  425. ( $langErr != "") || ( $writingErr != "") || ( $progErr != "" ) ||
  426. ( $motivErr != "") || ( $contribsourceErr != "") || ( $otherErr != ""))
  427. {die('Not all required data is entered');}
  428. else{
  429. $to = "lugha@tuvutepamoja.africa";
  430. $subject = "Coordinator Application";
  431. $txt = "Name :\n" . $name . "\n Email :\n" . $email . "\n Country code \n" . $countryCode ;
  432. $txt = $txt ." \n Telephone " . $tel . "\n Language(s) \n" . $lang . "\n Writing experience \n" . $writing ;
  433. $txt = $txt . "\n Programming, artificial intelligence and natural language processing experience \n" . $prog ;
  434. $txt = $txt . "\n Motivation \n" . $motiv . "\n Possible contributors \n" . $contribsource ;
  435. $txt = $txt . "\n Other comments \n" . $other ;
  436. $txt = wordwrap($txt , 70) ;
  437. $headers = "From: lugha@tuvutepamoja.africa" . "\r\n" . "CC: " . $email ."\r\nContent-Type: text/plain; charset=UTF-8";
  438. mail($to,$subject,$txt,$headers);
  439. echo "<br>";
  440. echo "Thank you for your submission. You should receive an acknowledgement within 1 working day.";
  441. echo "<br>";
  442. // Create connection
  443. $conn = mysqli_connect($servername, $username, $password, $dbname);
  444. // Check connection
  445. if (!$conn) {
  446. die("Connection failed: " . mysqli_connect_error());
  447. }
  448. $sql = "INSERT INTO CoordinatorApplication (name, email, countryCode, tel, lang, writing, prog, motiv, contribsource, other)
  449. VALUES ( '" . $name . "', '" . $email . "', '" . $countryCode . "', '" . $tel . "' , '" . $lang . "', '" . $writing . "', '" . $prog . "', '" . $motiv . "', '" . $contribsource . "', '" . $other . "')";
  450. if (mysqli_query($conn, $sql)) {
  451. echo "New record created successfully";
  452. } else {
  453. echo "Error: " . $sql . "<br>" . mysqli_error($conn);
  454. }
  455. mysqli_close($conn);
  456. }
  457. }
  458. ?>
  459. </section>
  460. </body>
  461. <?php include 'footer.php';?>
  462. </html>