<form method="post">
<input type="text" name="search" class="srch"><input type="submit" value=" поиск " name="btn" class="bl" ></form>
<?php
if($_POST['btn']){
echo '<div id="result"><span id="close"><a href="'.$_SERVER['PHP_SELF'].'">закрыть</a></span>';
$search=trim(htmlspecialchars($_POST['search']));
$int=iconv_strlen ($search,'utf-8');
if((empty($search)) || ($int<1)){
echo '<h4>введите большее количество символов для поиска</h4>';
}else{
$word=explode('musica/',$search);
$z=0;
foreach (glob("*.mp3") as $file) {
$tags=get_meta_tags($file);
$rest = substr($search[$z],-1);
$intro=iconv_strlen ($rest,'utf-8');
$descript=$tags['description'];
if(preg_match('/'.$search.'/iu',$descript)){
echo '<a href="'.$file.'">'.$descript.'</a> ';
$x=1;
}
$z++;
}
if($x!==1){
echo '<h4>ничего не найдено :(</h4>';
}
}
echo '</div>';
}
?>