123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" href="css/style.css">
- <title>Tuvute Pamoja</title>
- </head>
- <body>
- <?php
- // database information
- $servername = "";
- $username = "";
- $password = "";
- $dbname = "";
- // define variables and set to empty values
- $nameErr = $emailErr = $telErr = $langErr = $writingErr = $progErr = "";
- $motivErr = $contribsourceErr = $otherErr = "";
- $name = $email = $countryCode = $tel = $lang = $writing = $prog = "";
- $motiv = $contribsource = $other = "";
- $code = "";
- if ($_SERVER["REQUEST_METHOD"] == "POST") {
- if (empty($_POST["name"])) {
- $nameErr = "Name is required";
- } else {
- $name = test_input($_POST["name"]);
- }
- if (empty($_POST["email"])) {
- $emailErr = "Email is required";
- } else {
- $email = test_input($_POST["email"]);
- // check if e-mail address is well-formed
- if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
- $emailErr = "Invalid email format";
- }
- }
- $countryCode = test_input($_POST["countryCode"]);
- if (empty($_POST["tel"])) {
- $telErr = "Telephone is required";
- } else {
- $tel = test_input($_POST["tel"]);
- }
- if (empty($_POST["lang"])) {
- $langErr = "At least one language you can coordinate is required";
- } else {
- $lang = test_input($_POST["lang"]);
- }
- if (empty($_POST["writing"])) {
- $writingErr = "Please add information on writing experience in the language(s) you can coordinate";
- } else {
- $writing = test_input($_POST["writing"]);
- }
- if (empty($_POST["prog"])) {
- $progErr = "Please add artificial intelligence, natural language processing or programming experience";
- } else {
- $prog = test_input($_POST["prog"]);
- }
- if (empty($_POST["motiv"])) {
- $motivErr = "Please add motivation";
- } else {
- $motiv = test_input($_POST["motiv"]);
- }
- if (empty($_POST["contribsource"])) {
- $contribsourceErr = "Please indicate likely source of contributors";
- } else {
- $contribsource = test_input($_POST["contribsource"]);
- }
- if (empty($_POST["other"])) {
- $other = "";
- } else {
- $other = test_input($_POST["other"]);
- }
- }
- function test_input($data) {
- $data = trim($data);
- $data = stripslashes($data);
- $data = htmlspecialchars($data);
- return $data;
- }
- ?>
- <ul>
- <li><a id="home" href="index1.php">Home</a></li>
- <li><a id="original" href="submit1.php">Original Story Submission</a></li>
- <li><a id="translation" href="submittranslation1.php">Translated Story Submission</a></li>
- <li><a id="stories" href="displaystories1.php">Submitted Stories</a></li>
- <li><a id="statistics" href="submissionstatistics1.php">Submissions per Language</a></li>
- <li><a id="coordinate" class="active" href="#">Coordinator Application</a></li>
- <li><a id="contact" href="contact1.php">Contact</a></li>
- <li><a id="resources" href="resources1.php">Resources</a></li>
- <li><a id="flyers" href="flyers1.php">Flyers</a></li>
- <li><a id="faq" href="faq1.php">Frequently Asked Questions</a></li>
- <li><a id="privacy" href="privacy1.php">Privacy</a></li>
- </ul>
- <header>
- <h1>Tuvute Pamoja
- <a href="https://deeplearningindaba.com">
- <img src="images/deeplearningindaba.svg" alt="Deeplearning Indaba" style="height:60px">
- </a> </h1>
- </header>
- <section id="description">
- <h2>Indaba X: African Language Short Story Competition</h2>
- <p>The aim of this project is to create a corpus of short stories in
- African languages through an online competition. The stories will be
- evaluated by people who have made a submission. Up to 400 winning stories
- will receive a monetary reward.</p>
- </section>
- <section id="schedule">
- <h3>Schedule</h3>
- <table class="center">
- <thead>
- <tr>
- <td>Date</td><td>Activity</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>3 October</td><td>Language coordinator applications open</td>
- </tr>
- <tr>
- <td><del>9</del><del>13</del>16 October</td><td>Language coordinator applications close</td>
- </tr>
- </tbody>
- </table>
- </section>
- <section id="coordinator">
- <h3>Coordinator application</h3>
- <p>Coordinators are unpaid volunteer positions where a person aids the competition organizers with advertising for
- entries in a particular African language and ensuring that a localized web user interface is available for
- the choosen African language. Submissions will only be eligble to win prizes in languages with coordinators.
- Language coordinators should have knowledge of the choosen language, they should indicate their motivation for
- obtaining a high quality corpus and potential contributors they will solicit short stories from.</p>
- <!--
- <span class="error">* required field</span>
- <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
- <p>
- <label for="name">What is your name?</label><span class="error">* </span><br>
- <span class="error"> <?php echo $nameErr;?></span><br>
- <input id="name" type="text" name="name" maxlength="100"><br>
- </p>
- <p>
- <label for="email">What is your e-mail address?</label><span class="error">*</span><br>
- <span class="error"><?php echo $emailErr;?></span><br>
- <input type="email" id="email" name="email"><br>
- </p>
- <p>
- <label for="tel">What is your telephone number?</label><span class="error">*</span><br>
- <span class="error"><?php echo $telErr;?></span><br> -->
- <!-- Modified from https://gist.github.com/NicholasKimuli/2b167ca1c6ce03cb860e3f89d17db1eb
- Bonaire, Saba and Sint Eustatius may need a future flag update -->
- <!--
- <select class="input-block-level" id="countryCode" name="countryCode">
- <option data-countryCode="DZ" value="213">🇩🇿 Algeria (+213)</option>
- <option data-countryCode="AO" value="244">🇦🇴 Angola (+244)</option>
- <option data-countryCode="BJ" value="229">🇧🇯 Benin (+229)</option>
- <option data-countryCode="BW" value="267">🇧🇼 Botswana (+267)</option>
- <option data-countryCode="BF" value="226">🇧🇫 Burkina Faso (+226)</option>
- <option data-countryCode="BI" value="257">🇧🇮 Burundi (+257)</option>
- <option data-countryCode="CM" value="237">🇨🇲 Cameroon (+237)</option>
- <option data-countryCode="CV" value="238">🇨🇻 Cape Verde Islands (+238)</option>
- <option data-countryCode="CF" value="236">🇨🇫 Central African Republic (+236)</option>
- <option data-countryCode="TD" value="235">🇹🇩 Chad (+235)</option>
- <option data-countryCode="KM" value="269">🇰🇲 Comoros (+269)</option>
- <option data-countryCode="CG" value="242">🇨🇬 Congo (+242)</option>
- <option data-countryCode="CD" value="243">🇨🇩 Congo, Democratic Republic of the (+243)</option>
- <option data-countryCode="CI" value="225">🇨🇮 Cote d'Ivoire (+225)</option>
- <option data-countryCode="DJ" value="253">🇩🇯 Djibouti (+253)</option>
- <option data-countryCode="EG" value="20">🇪🇬 Egypt (+20)</option>
- <option data-countryCode="GQ" value="240">🇬🇶 Equatorial Guinea (+240)</option>
- <option data-countryCode="ER" value="291">🇪🇷 Eritrea (+291)</option>
- <option data-countryCode="SZ" value="268">🇸🇿 Eswatini (+268)</option>
- <option data-countryCode="ET" value="251">🇪🇹 Ethiopia (+251)</option>
- <option data-countryCode="GA" value="241">🇬🇦 Gabon (+241)</option>
- <option data-countryCode="GM" value="220">🇬🇲 Gambia (+220)</option>
- <option data-countryCode="GH" value="233">🇬🇭 Ghana (+233)</option>
- <option data-countryCode="GN" value="224">🇬🇳 Guinea (+224)</option>
- <option data-countryCode="GW" value="245">🇬🇼 Guinea - Bissau (+245)</option>
- <option data-countryCode="KE" value="254">🇰🇪 Kenya (+254)</option>
- <option data-countryCode="LS" value="266">🇱🇸 Lesotho (+266)</option>
- <option data-countryCode="LR" value="231">🇱🇷 Liberia (+231)</option>
- <option data-countryCode="LY" value="218">🇱🇾 Libya (+218)</option>
- <option data-countryCode="MG" value="261">🇲🇬 Madagascar (+261)</option>
- <option data-countryCode="MW" value="265">🇲🇼 Malawi (+265)</option>
- <option data-countryCode="ML" value="223">🇲🇱 Mali (+223)</option>
- <option data-countryCode="MR" value="222">🇲🇷 Mauritania (+222)</option>
- <option data-countryCode="MU" value="230">🇲🇺 Mauritius (+230)</option>
- <option data-countryCode="MA" value="212">🇲🇦 Morocco (+212)</option>
- <option data-countryCode="MZ" value="258">🇲🇿 Mozambique (+258)</option>
- <option data-countryCode="NA" value="264">🇳🇦 Namibia (+264)</option>
- <option data-countryCode="NE" value="227">🇳🇪 Niger (+227)</option>
- <option data-countryCode="NG" value="234">🇳🇬 Nigeria (+234)</option>
- <option data-countryCode="RE" value="262">🇷🇪 Réunion (+262)</option>
- <option data-countryCode="RW" value="250">🇷🇼 Rwanda (+250)</option>
- <option data-countryCode="ST" value="239">🇸🇹 São Tomé & Principe (+239)</option>
- <option data-countryCode="SN" value="221">🇸🇳 Senegal (+221)</option>
- <option data-countryCode="SC" value="248">🇸🇨 Seychelles (+248)</option>
- <option data-countryCode="SL" value="232">🇸🇱 Sierra Leone (+232)</option>
- <option data-countryCode="SO" value="252">🇸🇴 Somalia (+252)</option>
- <option data-countryCode="ZA" value="27">🇿🇦 South Africa (+27)</option>
- <option data-countryCode="SS" value="211">🇸🇸 South Sudan (+211)</option>
- <option data-countryCode="SD" value="249">🇸🇩 Sudan (+249)</option>
- <option data-countryCode="TZ" value="255">🇹🇿 Tanzania (+255)</option>
- <option data-countryCode="TG" value="228">🇹🇬 Togo (+228)</option>
- <option data-countryCode="TN" value="216">🇹🇳 Tunisia (+216)</option>
- <option data-countryCode="UG" value="256">🇺🇬 Uganda (+256)</option>
- <option data-countryCode="EH" value="967">🇪🇭 Western Sahara (+212)</option>
- <option data-countryCode="ZM" value="260">🇿🇲 Zambia (+260)</option>
- <option data-countryCode="ZW" value="263">🇿🇼 Zimbabwe (+263)</option>
- <optgroup label="Other countries">
- <option data-countryCode="AF" value="93">🇦🇫 Afghanistan (+93)</option>
- <option data-countryCode="AL" value="355">🇦🇽 Albania (+355)</option>
- <option data-countryCode="AD" value="376">🇦🇩 Andorra (+376)</option>
- <option data-countryCode="AI" value="1264">🇦🇮 Anguilla (+1264)</option>
- <option data-countryCode="AG" value="1268">🇦🇬 Antigua & Barbuda (+1268)</option>
- <option data-countryCode="AR" value="54">🇦🇷 Argentina (+54)</option>
- <option data-countryCode="AM" value="374">🇦🇲 Armenia (+374)</option>
- <option data-countryCode="AW" value="297">🇦🇼 Aruba (+297)</option>
- <option data-countryCode="AC" value="247">🇦🇨 Ascension Island (+297)</option>
- <option data-countryCode="AU" value="61">🇦🇺 Australia (+61)</option>
- <option data-countryCode="AT" value="43">🇦🇹 Austria (+43)</option>
- <option data-countryCode="AZ" value="994">🇦🇿 Azerbaijan (+994)</option>
- <option data-countryCode="BS" value="1242">🇧🇸 Bahamas (+1242)</option>
- <option data-countryCode="BH" value="973">🇧🇭 Bahrain (+973)</option>
- <option data-countryCode="BD" value="880">🇧🇩 Bangladesh (+880)</option>
- <option data-countryCode="BB" value="1246">🇧🇧 Barbados (+1246)</option>
- <option data-countryCode="BY" value="375">🇧🇾 Belarus (+375)</option>
- <option data-countryCode="BE" value="32">🇧🇪 Belgium (+32)</option>
- <option data-countryCode="BZ" value="501">🇧🇿 Belize (+501)</option>
- <option data-countryCode="BM" value="1441">🇧🇲 Bermuda (+1441)</option>
- <option data-countryCode="BT" value="975">🇧🇹 Bhutan (+975)</option>
- <option data-countryCode="BO" value="591">🇧🇴 Bolivia (+591)</option>
- <option data-countryCode="BQ" value="599">🇧🇶 Bonaire, Saba and Sint Eustatius (+599)</option>
- <option data-countryCode="BA" value="387">🇧🇦 Bosnia Herzegovina (+387)</option>
- <option data-countryCode="BR" value="55">🇧🇷 Brazil (+55)</option>
- <option data-countryCode="IO" value="246">🇮🇴 British Indian Ocean Territory (+246)</option>
- <option data-countryCode="BN" value="673">🇧🇳 Brunei (+673)</option>
- <option data-countryCode="BG" value="359">🇧🇬 Bulgaria (+359)</option>
- <option data-countryCode="KH" value="855">🇰🇭 Cambodia (+855)</option>
- <option data-countryCode="CA" value="1">🇨🇦 Canada (+1)</option>
- <option data-countryCode="KY" value="1345">🇰🇾 Cayman Islands (+1345)</option>
- <option data-countryCode="CL" value="56">🇨🇱 Chile (+56)</option>
- <option data-countryCode="CN" value="86">🇨🇳 China (+86)</option>
- <option data-countryCode="CO" value="57">🇨🇴 Colombia (+57)</option>
- <option data-countryCode="CK" value="682">🇨🇰 Cook Islands (+682)</option>
- <option data-countryCode="CR" value="506">🇨🇷 Costa Rica (+506)</option>
- <option data-countryCode="HR" value="385">🇭🇷 Croatia (+385)</option>
- <option data-countryCode="CU" value="53">🇨🇺 Cuba (+53)</option>
- <option data-countryCode="CW" value="5999">🇨🇼 Curaçao (+5999)</option>
- <option data-countryCode="CY" value="357">🇨🇾 Cyprus (+357)</option>
- <option data-countryCode="CZ" value="420">🇨🇿 Czech Republic (+420)</option>
- <option data-countryCode="DK" value="45">🇩🇰 Denmark (+45)</option>
- <option data-countryCode="DM" value="1767">🇩🇲 Dominica (+1767)</option>
- <option data-countryCode="DO" value="1809">🇩🇴 Dominican Republic (+1809)</option>
- <option data-countryCode="TL" value="670">🇹🇱 East Timor (+670)</option>
- <option data-countryCode="EC" value="593">🇪🇨 Ecuador (+593)</option>
- <option data-countryCode="SV" value="503">🇸🇻 El Salvador (+503)</option>
- <option data-countryCode="EE" value="372">🇪🇪 Estonia (+372)</option>
- <option data-countryCode="FK" value="500">🇫🇰 Falkland Islands (+500)</option>
- <option data-countryCode="FO" value="298">🇫🇴 Faroe Islands (+298)</option>
- <option data-countryCode="FJ" value="679">🇫🇯 Fiji (+679)</option>
- <option data-countryCode="FI" value="358">🇫🇮 Finland (+358)</option>
- <option data-countryCode="FR" value="33">🇫🇷 France (+33)</option>
- <option data-countryCode="GF" value="594">🇬🇫 French Guiana (+594)</option>
- <option data-countryCode="PF" value="689">🇵🇫 French Polynesia (+689)</option>
- <option data-countryCode="GE" value="995">🇬🇪 Georgia (+995)</option>
- <option data-countryCode="DE" value="49">🇩🇪 Germany (+49)</option>
- <option data-countryCode="GI" value="350">🇬🇮 Gibraltar (+350)</option>
- <option data-countryCode="GR" value="30">🇬🇷 Greece (+30)</option>
- <option data-countryCode="GL" value="299">🇬🇱 Greenland (+299)</option>
- <option data-countryCode="GD" value="1473">🇬🇩 Grenada (+1473)</option>
- <option data-countryCode="GP" value="590">🇬🇵 Guadeloupe (+590)</option>
- <option data-countryCode="GU" value="1671">🇬🇺 Guam (+1671)</option>
- <option data-countryCode="GT" value="502">🇬🇹 Guatemala (+502)</option>
- <option data-countryCode="GY" value="592">🇬🇾 Guyana (+592)</option>
- <option data-countryCode="HT" value="509">🇭🇹 Haiti (+509)</option>
- <option data-countryCode="HN" value="504">🇭🇳 Honduras (+504)</option>
- <option data-countryCode="HK" value="852">🇭🇰 Hong Kong (+852)</option>
- <option data-countryCode="HU" value="36">🇭🇺 Hungary (+36)</option>
- <option data-countryCode="IS" value="354">🇮🇸 Iceland (+354)</option>
- <option data-countryCode="IN" value="91">🇮🇳 India (+91)</option>
- <option data-countryCode="ID" value="62">🇮🇩 Indonesia (+62)</option>
- <option data-countryCode="IR" value="98">🇮🇷 Iran (+98)</option>
- <option data-countryCode="IQ" value="964">🇮🇶 Iraq (+964)</option>
- <option data-countryCode="IE" value="353">🇮🇪 Ireland (+353)</option>
- <option data-countryCode="IL" value="972">🇮🇱 Israel (+972)</option>
- <option data-countryCode="IT" value="39">🇮🇹 Italy (+39)</option>
- <option data-countryCode="JM" value="1876">🇯🇲 Jamaica (+1876)</option>
- <option data-countryCode="JP" value="81">🇯🇵 Japan (+81)</option>
- <option data-countryCode="JO" value="962">🇯🇴 Jordan (+962)</option>
- <option data-countryCode="KZ" value="7">🇰🇿 Kazakhstan (+7)</option>
- <option data-countryCode="KI" value="686">🇰🇮 Kiribati (+686)</option>
- <option data-countryCode="KP" value="850">🇰🇵 Korea, North (+850)</option>
- <option data-countryCode="KR" value="82">🇰🇷 Korea, South (+82)</option>
- <option data-countryCode="XK" value="383">🇽🇰 Kosovo (+383)</option>
- <option data-countryCode="KW" value="965">🇰🇼 Kuwait (+965)</option>
- <option data-countryCode="KG" value="996">🇰🇬 Kyrgyzstan (+996)</option>
- <option data-countryCode="LA" value="856">🇱🇦 Laos (+856)</option>
- <option data-countryCode="LV" value="371">🇱🇻 Latvia (+371)</option>
- <option data-countryCode="LB" value="961">🇱🇧 Lebanon (+961)</option>
- <option data-countryCode="LI" value="423">🇱🇮 Liechtenstein (+423)</option>
- <option data-countryCode="LT" value="370">🇱🇹 Lithuania (+370)</option>
- <option data-countryCode="LU" value="352">🇱🇺 Luxembourg (+352)</option>
- <option data-countryCode="MO" value="853">🇲🇴 Macao (+853)</option>
- <option data-countryCode="MK" value="389">🇲🇰 Macedonia (+389)</option>
- <option data-countryCode="MY" value="60">🇲🇾 Malaysia (+60)</option>
- <option data-countryCode="MV" value="960">🇲🇻 Maldives (+960)</option>
- <option data-countryCode="MT" value="356">🇲🇹 Malta (+356)</option>
- <option data-countryCode="MH" value="692">🇲🇭 Marshall Islands (+692)</option>
- <option data-countryCode="MQ" value="596">🇲🇶 Martinique (+596)</option>
- <option data-countryCode="YT" value="262">🇾🇹 Mayotte (+262)</option>
- <option data-countryCode="MX" value="52">🇲🇽 Mexico (+52)</option>
- <option data-countryCode="FM" value="691">🇫🇲 Micronesia (+691)</option>
- <option data-countryCode="MD" value="373">🇲🇩 Moldova (+373)</option>
- <option data-countryCode="MC" value="377">🇲🇨 Monaco (+377)</option>
- <option data-countryCode="MN" value="976">🇲🇳 Mongolia (+976)</option>
- <option data-countryCode="ME" value="382">🇲🇪 Montenegro (+382)</option>
- <option data-countryCode="MS" value="1664">🇲🇸 Montserrat (+1664)</option>
- <option data-countryCode="MN" value="95">🇲🇲 Myanmar (+95)</option>
- <option data-countryCode="NR" value="674">🇳🇷 Nauru (+674)</option>
- <option data-countryCode="NP" value="977">🇳🇵 Nepal (+977)</option>
- <option data-countryCode="NL" value="31">🇳🇱 Netherlands (+31)</option>
- <option data-countryCode="NC" value="687">🇳🇨 New Caledonia (+687)</option>
- <option data-countryCode="NZ" value="64">🇳🇿 New Zealand (+64)</option>
- <option data-countryCode="NI" value="505">🇳🇮 Nicaragua (+505)</option>
- <option data-countryCode="NU" value="683">🇳🇺 Niue (+683)</option>
- <option data-countryCode="NF" value="672">🇳🇫 Norfolk Islands (+67
- <option data-countryCode="NP" value="1670">🇲🇵 Northern Mariana Islands (+1670)</option>
- <option data-countryCode="NO" value="47">🇳🇴 Norway (+47)</option>
- <option data-countryCode="OM" value="968">🇴🇲 Oman (+968)</option>
- <option data-countryCode="PW" value="680">🇵🇼 Palau (+680)</option>
- <option data-countryCode="PS" value="970">🇵🇸 Palestine (+970)</option>
- <option data-countryCode="PK" value="92">🇵🇰 Pakistan (+92)</option>
- <option data-countryCode="PA" value="507">🇵🇦 Panama (+507)</option>
- <option data-countryCode="PG" value="675">🇵🇬 Papua New Guinea (+675)</option>
- <option data-countryCode="PY" value="595">🇵🇾 Paraguay (+595)</option>
- <option data-countryCode="PE" value="51">🇵🇪 Peru (+51)</option>
- <option data-countryCode="PH" value="63">🇵🇭 Philippines (+63)</option>
- <option data-countryCode="PL" value="48">🇵🇱 Poland (+48)</option>
- <option data-countryCode="PT" value="351">🇵🇹 Portugal (+351)</option>
- <option data-countryCode="PR" value="1787">🇵🇷 Puerto Rico (+1787)</option>
- <option data-countryCode="QA" value="974">🇶🇦 Qatar (+974)</option>
- <option data-countryCode="RO" value="40">🇷🇴 Romania (+40)</option>
- <option data-countryCode="RU" value="7">🇷🇺 Russia (+7)</option>
- <option data-countryCode="SH" value="290">🇸🇭 Saint Helena (+290)</option>
- <option data-countryCode="KN" value="1869">🇰🇳 Saint Kitts and Nevis (+1869)</option>
- <option data-countryCode="SC" value="1758">🇱🇨 Saint Lucia (+1758)</option>
- <option data-countryCode="PM" value="508">🇵🇲 Saint Pierre and Miquelon (+508)</option>
- <option data-countryCode="WS" value="685">🇼🇸 Samoa (+685)</option>
- <option data-countryCode="SM" value="378">🇸🇲 San Marino (+378)</option>
- <option data-countryCode="SA" value="966">🇸🇦 Saudi Arabia (+966)</option>
- <option data-countryCode="CS" value="381">🇷🇸 Serbia (+381)</option>
- <option data-countryCode="SG" value="65">🇸🇬 Singapore (+65)</option>
- <option data-countryCode="SK" value="421">🇸🇰 Slovakia (+421)</option>
- <option data-countryCode="SI" value="386">🇸🇮 Slovenia (+386)</option>
- <option data-countryCode="SB" value="677">🇸🇧 Solomon Islands (+677)</option>
- <option data-countryCode="ES" value="34">🇪🇸 Spain (+34)</option>
- <option data-countryCode="LK" value="94">🇱🇰 Sri Lanka (+94)</option>
- <option data-countryCode="SR" value="597">🇸🇷 Suriname (+597)</option>
- <option data-countryCode="SE" value="46">🇸🇪 Sweden (+46)</option>
- <option data-countryCode="CH" value="41">🇨🇭 Switzerland (+41)</option>
- <option data-countryCode="SI" value="963">🇸🇾 Syria (+963)</option>
- <option data-countryCode="TW" value="886">🇹🇼 Taiwan (+886)</option>
- <option data-countryCode="TJ" value="992">🇹🇯 Tajikstan (+992)</option>
- <option data-countryCode="TH" value="66">🇹🇭 Thailand (+66)</option>
- <option data-countryCode="TK" value="90">🇹🇰 Tokelau (+690)</option>
- <option data-countryCode="TO" value="676">🇹🇴 Tonga (+676)</option>
- <option data-countryCode="TT" value="1868">🇹🇹 Trinidad & Tobago (+1868)</option>
- <option data-countryCode="TR" value="90">🇹🇷 Turkey (+90)</option>
- <option data-countryCode="TM" value="993">🇹🇲 Turkmenistan (+993)</option>
- <option data-countryCode="TC" value="1649">🇹🇨 Turks & Caicos Islands (+1649)</option>
- <option data-countryCode="TV" value="688">🇹🇻 Tuvalu (+688)</option>
- <option data-countryCode="UA" value="380">🇺🇦 Ukraine (+380)</option>
- <option data-countryCode="AE" value="971">🇦🇪 United Arab Emirates (+971)</option>
- <option data-countryCode="GB" value="44">🇬🇧 United Kingdom (+44)</option>
- <option data-countryCode="US" value="1">🇺🇸 United States of America (+1)</option>
- <option data-countryCode="UY" value="598">🇺🇾 Uruguay (+598)</option>
- <option data-countryCode="UZ" value="998">🇺🇿 Uzbekistan (+998)</option>
- <option data-countryCode="VU" value="678">🇻🇺 Vanuatu (+678)</option>
- <option data-countryCode="VA" value="39">🇻🇦 Vatican City (+39)</option>
- <option data-countryCode="VE" value="58">🇻🇪 Venezuela (+58)</option>
- <option data-countryCode="VN" value="84">🇻🇳 Vietnam (+84)</option>
- <option data-countryCode="VG" value="1284">🇻🇬 Virgin Islands - British (+1284)</option>
- <option data-countryCode="VI" value="1340">🇻🇮 Virgin Islands - US (+1340)</option>
- <option data-countryCode="WF" value="681">🇼🇫 Wallis & Futuna (+681)</option>
- <option data-countryCode="YE" value="967">🇾🇪 Yemen (+967)</option>
- </optgroup>
- </select>
- <input type="tel" id="tel" name="tel"><br>
- <p>
- <label for="lang">What language can you coordinate?</label><span class="error">*</span><br>
- <span class="error"> <?php echo $langErr;?></span><br>
- <textarea id="lang" type="text" name="lang" maxlength="100" rows="5"></textarea><br>
- </p>
- <p>
- <label for="writing">Writing experience in chosen language?</label><span class="error">*</span><br>
- <span class="error"><?php echo $writingErr;?></span><br>
- <textarea id="writing" type="text" name="writing" maxlength="100" rows="2"></textarea><br>
- </p>
- <p>
- <label for="prog">What is your machine learning, natural language processing or programming experience?</label><span class="error">*</span> <br>
- <span class="error"><?php echo $progErr;?></span><br>
- <textarea id="prog" type="text" name="prog" maxlength="100" rows="2"></textarea><br>
- </p>
- <p>
- <label for="motiv">What is your motivation for being a coordinator?</label><span class="error">*</span><br>
- <span class="error"><?php echo $motivErr;?></span><br>
- <textarea id="motiv" name="motiv" maxlength="140" rows="5"></textarea><br>
- </p>
- <p>
- <label for="contribsource">What is your source of potential contributors (for example institutions, groups, networks)?</label><span class="error">*</span><br>
- <span class="error"><?php echo $contribsourceErr;?></span><br>
- <textarea id="contribsource" name="contribsource" maxlength="140" rows="5"></textarea><br>
- </p>
- <p>
- <label for="other">Any other questions or suggestions?</label><br>
- <textarea id="other" name="other" maxlength="140" rows="5"></textarea>
- </p>
- <p>
- <input type="submit" name="submit" value="Submit">
- </p>
- </form>
- -->
- <?php
- // Check for submission of entered data
- if (isset($_POST['submit'])){
- if ( ( $nameErr != "") || ( $emailErr != "") || ( $telErr != "") ||
- ( $langErr != "") || ( $writingErr != "") || ( $progErr != "" ) ||
- ( $motivErr != "") || ( $contribsourceErr != "") || ( $otherErr != ""))
- {die('Not all required data is entered');}
- else{
- $to = "lugha@tuvutepamoja.africa";
- $subject = "Coordinator Application";
- $txt = "Name :\n" . $name . "\n Email :\n" . $email . "\n Country code \n" . $countryCode ;
- $txt = $txt ." \n Telephone " . $tel . "\n Language(s) \n" . $lang . "\n Writing experience \n" . $writing ;
- $txt = $txt . "\n Programming, artificial intelligence and natural language processing experience \n" . $prog ;
- $txt = $txt . "\n Motivation \n" . $motiv . "\n Possible contributors \n" . $contribsource ;
- $txt = $txt . "\n Other comments \n" . $other ;
- $txt = wordwrap($txt , 70) ;
- $headers = "From: lugha@tuvutepamoja.africa" . "\r\n" . "CC: " . $email ."\r\nContent-Type: text/plain; charset=UTF-8";
-
- mail($to,$subject,$txt,$headers);
- echo "<br>";
- echo "Thank you for your submission. You should receive an acknowledgement within 1 working day.";
- echo "<br>";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- $sql = "INSERT INTO CoordinatorApplication (name, email, countryCode, tel, lang, writing, prog, motiv, contribsource, other)
- VALUES ( '" . $name . "', '" . $email . "', '" . $countryCode . "', '" . $tel . "' , '" . $lang . "', '" . $writing . "', '" . $prog . "', '" . $motiv . "', '" . $contribsource . "', '" . $other . "')";
- if (mysqli_query($conn, $sql)) {
- echo "New record created successfully";
- } else {
- echo "Error: " . $sql . "<br>" . mysqli_error($conn);
- }
- mysqli_close($conn);
- }
- }
- ?>
- </section>
- </body>
- <?php include 'footer.php';?>
- </html>
|