// there are x buttons, when you click button x you need to send a button x value, but // all buttons in the browser should be displayed with the same name, for example Y
<?php while($result2=mysqli_fetch_array($data2)) { $sub=$result2['name']; $clas=$result2['classid']; echo "<option value='" . $id ."'>" . $sub ."</option>"; // echo "<input name = \"DZ2\" type = \"hidden\" value = \"$clas\" />"; echo "<input id = \"DZ\" name= \"$clas\" type = \"submit\" value = \"$clas\" />"; ?> 
