<form action="seach_simple.php" method="POST" >
<h4>
<table width="800" border="1" >
<tr>
<th scope="col">Наименование</th>
<th scope="col">Отношение</th>
<th scope="col" style="width:160px;">Величина</th>
</tr>
<tr><p><td><i>Номер чертежа</i></td>
<td>
<select id="ratio_NC" name="ratio_NC">
<option value="=" selected="selected">=</option>
<option value="!=">!=</option>
<option value="<"><</option>
<option value=">">></option>
<option value="<="><=</option>
<option value=">=">>=</option>
</select>
<td><input type="text" name="NC" /></td>
</p>
</tr></td>
</table></h4>
<p><input type="submit" value="Generate SQL" /></p>
</form>
和 PHP
$code_NC = $_POST['NC'];
$ratio_NC = $_POST['ratio_NC'];
echo "$code_NC";
echo "$ratio_NC";
问题是我从“INPUT”中得到了值,而“SELECT”中什么也没得到,不知道该怎么做。会很高兴得到帮助。