Location: PHPKode > projects > PHP OpenTailorShop > phpopentailorshop/install/index.php
<html>
<head>
<title>Language Select</title>
</head>

<body>

<center>
<form name="language" action="installer.php" method="POST">
Language Select: <select name="language" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1">
        <?php
        $handle = opendir('../language');
        	while (false !== ($file = readdir($handle))) 
 			{ 
    			if ($file {0}!='.') 
 				{ 
 					$temp_lang=ucfirst(substr($file,0,strpos($file,'.')));
      				echo "<option value='$file'>$temp_lang</option>"; 
    			} 
  			}
   	    	closedir($handle); 
 		
		?>
        
        </select>

<input type="submit">
</form>
</center>
</body>
</html>
Return current item: PHP OpenTailorShop