I have the following select but I dont want it to show .jpg can you guys help me and if I select a name option it has to echo the image file.
<?php
$images = glob("smoelenboek/*.{jpg}", GLOB_BRACE);
echo '<select name="image">';
foreach($images as $image)
{
echo '<option>' . basename($image) . '</option>';
}
echo '</select>';
echo '<option>' . basename($image) . '</option>'
?>