How would I be able to give the different things different names (as I am creating them in a loop) so that I can use the data? Could I modify name=\"type\" to maybe include $x within the name so that it is different each time?
For($x=0; $x<=$noQuestions-1; $x++){
echo "<table>";
echo "<tr>"."Question ".($x+1).": ".$question[$x]."</tr>";
echo "<form method=\"post\">";
echo "<Select class=\"form-control\" type=\"text\" name=\"type\" required>";
echo "<option value=\"1\">".$optionData[$x][0]."</option>";
echo "<option value=\"2\">".$optionData[$x][1]."</option>";
echo "<option value=\"3\">".$optionData[$x][2]."</option>";
echo "<option value=\"4\">".$optionData[$x][3]."</option>";
echo "</select>";
echo "</form>";
echo "</table>";
}