Please select your Spotrep map:"; echo 'ALL Data'; foreach($files as $file) { echo ''.str_replace(array("data/spotrep-", ".txt"), "", $file).''; } ?>