(10 points) Image Gallery Search: The following HTML snippet is the skeleton of a . simple image gallery. The gallery s...
(10 points) Image Gallery Search: The following HTML snippet is the skeleton of a . simple image gallery. The gallery stores all of its images in a directory called im ages. Write a PHP sear ch page for an program called search php to implement the searching feature. An image is onsidered a mat ch" to the search string if the name of the image contains the entirety of the search string. For example, query of "tea" mightmatch 'teajpg" or "steamboatjpg" a The search should be case-insensitive and you should eliminate the whitespace surrounding a query before processingit You should output an unordered list of links to all matches. Ablank query should return no results. You may assume there are only image files in the images directory. Please also submit the html code you use to test the corectness of your fundion <h 1> Image Gallery Search <h 1> form action ="search.php" method-"get"> <fieldset Type a query: <input type "text" name-' <input type-"submit" value="Search" /> </fieldset> </form ="query" f <br />
(10 points) Image Gallery Search: The following HTML snippet is the skeleton of a . simple image gallery. The gallery stores all of its images in a directory called im ages. Write a PHP sear ch page for an program called search php to implement the searching feature. An image is onsidered a mat ch" to the search string if the name of the image contains the entirety of the search string. For example, query of "tea" mightmatch 'teajpg" or "steamboatjpg" a The search should be case-insensitive and you should eliminate the whitespace surrounding a query before processingit You should output an unordered list of links to all matches. Ablank query should return no results. You may assume there are only image files in the images directory. Please also submit the html code you use to test the corectness of your fundion Image Gallery Search form action ="search.php" method-"get">