I'm trying to get a form to work with php. When I click submit a submit button nothing happens.
<?php
if(isset($_POST['imageSelectButton']))
{
echo "Test: ";
}
?>
<form id="setImages" action="index.php" method="POST" enctype="multipart/form-data">
<?php
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('../Home'));
$images = new RegexIterator($files, '/\.(?:jpg|png|gif)$/i');
foreach($images as $file)
{
echo "<div class='images'>\n";
echo "<img class='thumbNail' id='". htmlspecialchars($images->getFileName()) . "'src='". htmlspecialchars($images->getFileName()) . "' alt='Home Images' />\n ";
echo "<div class='imagesSelectButton'>\n";
echo "<input id='imageSelectButton' name='imageSelectButton' type='button' value='Select' />\n";
echo "</div>\n";
echo "</div>\n";
}
?>
</form>