upload.php
<form name="selectionForm" method="POST" action='query.php'>
echo "<select name='$q2['type']'>";
//echo "<select name='selecttype'>";
echo "<option value='Regular Project'>Regular Project</option>";
echo "<option value='FSA Project'>FSA Project</option>";
echo "</select></td>";
echo "<input type='hidden' name='mid' value='$q2[0]'>";
echo "<td width='140'><textarea rows='2' name='comments[]' cols='20' ></textarea></td>\n";
echo "</tr>\n";
</form>
query.php
$selecttype = $_POST['selecttype'];
instead of calling 'selecttype' i want to call '$q2['type']'. how to get this value as dynamic.