Image Index

  1. Consider a PHP script "imageIndex.php", which displays thumbnails of image files (*.gif, *.jpg, *.png) under the "./Images" directory. When the user click on a thumbnail, the corresponding image file will be displayed.
  2. Modify the program so that a user can select what file types he/she wants to display, by checking/unchecking the corresponding file types.
  3. Selected file types should be automatically checked after applying the filter.
  4. If none is checked, then all files (*.*) in "./Images" will be displayed.
  5. You may read this example on how to get those checked items in an HTML form into a PHP array.