The code below is ripped and edited from my last problem which was solved using a variant of this.
Code: Select all
printdir('/*');
function printdir($path) {
echo "<select name=selection>";
foreach( glob($path.'/*') as $e ) {
if ( is_dir(basename($e)) ) {
echo "<option value=\"$e\">", basename($e), "- $e</option><br />";//displays file and path
}
}
echo "</select>";
}thanks
Andy