Have the following to provide a dir list in an array
for($index=0; $index < $indexCount; $index++) {
if (substr("$dirArray[$index]", 0, 1) != ".") { // don't list hidden files
echo "<option value=\"".$dirArray[$index]."\">".$dirArray[$index]."</option>";
}
Is there any way i can modify the above code so that only .JPG and .PNG are displayed?
Thanks!
CP