Location: PHPKode > scripts > Cyrillic to Latin > cyrillic-to-latin/examples/cyr2lat_test.php
<?php

if (!isset($_POST['convert'])){
	echo "
<html>
  <head><title>lat2cyr test form</title></head>
	<body>
	 <form action=cyr2lat_test.php method=POST>
	  <textarea name=input>Pro Scheloch'</textarea><br>
	  <input type=submit name=convert value='GO!'>
	 </form>
	</body>
</html>";
exit;
}
require_once("../cyrlat.class.php");
$cyrlat=new CyrLat;
$input=$_POST['input'];
$result=$cyrlat->cyr2lat($input);
echo "
<html>
  <head><title>latr2cyr test result</title></head>
	<body>
	<h1>Result:</h1>
	 <form action=cyr2lat_test.php method=POST>
	  <textarea>$result</textarea><br>
	<h1>Try Again?</h1>
 	  <textarea name=input>$input</textarea><br>
	  <input type=submit name=convert value='GO!'>	  
	 </form>
	</body>
</html>";

?>
Return current item: Cyrillic to Latin