Here the script you need.
<HEAD></HEAD>
<BODY>
<CENTER>
<FORM action="showpic.php" method="post">
Choose one
<SELECT name="picname">
<?
$dirname=getcwd();
$dir=opendir($dirname) or die();
while ( $filename=readdir($dir) )
{
$bits=explode(".", $filename);
if ( strtoupper($bits[1]) == "JPG" )
{
$date=substr($bits[0], 6, 2)."-".substr($bits[0], 4, 2)."-".substr($bits[0], 0, 4)
echo "<OPTION value=\"".$filename."\">".$date;
}
}
?>
</SELECT>
<P>
<INPUT type="submit" Value="Submit">
</CENTER>
</FORM>
</CENTER>
</BODY>
This will submit the filename of the require picture in the variable picname. All you have to do is display the image based on that.
Mark.