The glob() function worked great (see post here)... Now another question. The above worked great for populating the select menu but now I need to also generate dynamic table rows. Here's the code I have so far but it doesn't seem to work. It's not creating the rows, instead it's only listing the directory names
<?
//Create and iterate through the artist array. Each pass
//adds a new table row as required.
foreach($dirs as $dir) {
$folders[] = $dir;
echo "<tr>";
echo "<td valign='middle' width='200'><font face='arial' size='2'>".ucwords(substr($dir, 11))."</font></td>";
echo "<td valign='middle' width='200'><a href='artistDelete.php?artist=".substr($dir, 11)."><img src='images/delete.png' height='16' width='16' title='Delete' border='0'></a></td>";
echo "</tr>";
}
?>