"; } */ // header("Location: http://students.washington.edu/irina/tests/emailer.php?mb=$mb&sbj=$subject&stname=$stname&email=$email&uri=$uri"); // exit(); $sent = mail($mailto, "Persian Test System - Combined Test for Joining and Disjoining Letters", $mailtext, $header); exit ( " Combined Test for Joining and Disjoining Letters

" . ($sent ? "Your results have successfully been sent to your Instructor!" : $error) . "

Back to the Persian Tests " ); } $letters_array = array (); // The "vaared" letters--letters that are always unconnected to the left $letters_array[1] = array('و', 'ا', 'ر', 'د', 'ز', 'ژ', 'ذ'); // vaav, alef, re, daal, ze, zhe, zaal // letters with a left-stretch in final position $letters_array[2] = array('ب', 'پ', 'ف', 'ت', 'ث', 'ک', 'گ'); // be, pe, fe, te, se, kaaf, gaaf // letters with a left-downward swing in final position $letters_array[3] = array('س', 'ش', 'ص', 'ض', 'ل', 'ق', 'ن', 'ط', 'ظ'); // sin, shin, saad, zaad, laam, qaaf, nun // one letter with the simplest, one with the most elegant arbesque: $letters_array[4] = array('م', 'ی'); // mim, ye // letters with inward swing in final position $letters_array[5] = array('ج', 'چ', 'ح', 'خ', 'ع', 'غ'); // jim, che, he (hotti), khe, `ayn, ghayn // *he (havvaz)* $letters_array[6] = array('ه'); $letters = array(); for ($i=1; $i<=6; $i++) { $letters = array_merge($letters, $letters_array[$i]); } srand((float)microtime() * 1000000); $wrong = false; if (isset($_POST['data'])) { $data = $_POST['data']; $newdata = explode(";", base64_decode($data)); $qletters = explode(",", $newdata[0]); $textname = $newdata[1]; $counter = intval($_POST['counter']); $type = intval($_POST['type']); if ($type==1) { if (isset($_POST[$textname])) { if ($_POST[$textname]!=implode("", $qletters)) { $wrong = true; } } else { $wrong = true; } } else { for ($i=0; $i Combined Test for Joining and Disjoining Letters $max) { print "

Combined Test for Joining and Disjoining Letters

\n"; print "

You have answered all questions correctly. Fill the form and click the button to send the results to your instructor:

\n"; include ("emailform.php"); exit (); } ?>

Combined Test for Joining and Disjoining Letters

Question out of

Please join these 0 letters by typing them on your keyboard from right to left:

\n"; } else { for($i = 1; $i <= count ( $qletters ); $i ++) { print "\n"; } } ?>
Keyboard layout, unshifted




Back to the Persian Tests