?><select name="dir_box"><?
$handle=opendir($page_dir);
while (($file = readdir($handle))!==false) {
if (substr($file,-5)==".page) {
echo '<option value="'.$file.'">'.$file.'</option>'."\n";
}
}
closedir($handle);
?></select><?
That should do it. Put that in a form, and the value $dir_box will be the page that was selected.
Dave