perhaps a simple question but I cant find an explanation: I have a php gallery application to make. One of the functions of the gallery is to show the miniatures of all uploaded photos. Every photo has to have a checkbox near it and there has to be a button that leads to a php script which does something like: show only checked photos in a new tab.
My problem is that the submit button doesn't work and I dont know what's the problem
EDIT: ok some more info what doesnt work: the buttons and the gallery show up, it's just the button doesnt run the script session.php when clicked. Here is the code:
echo '<form name ="gallery" method="post" action="session.php" enctype="multipart/form-data">';
for ($i=0; $i<count($files); $i++) {
echo ($i+1).'. <img src="'.$files[$i].'" /> ';
echo '<input type="checkbox" name="gallery" value="'.($i+1).'">';
echo "<br/>";
}
echo '<input type="submit" form = "gallery" name = "showchecked" value="button1" >';
echo '</form>';
nctype="multipart/form-data"seems unnecessary since you don't have any file inputs. Also, you have a closingatag but no opening one.<a>tag. I have modified it in answersession.phpis not running when the form is submitted?