复制程式
<td width="30%"><b>Search by parking fee</b><br><select name="fee" id="fee">
<option >Car Park</option>
<?
$str = "select carparkName, busyFee from $carPark where streetID = '".$strid."' ORDER BY busyFee DESC";
$result = mysql_query($str,$link);
$row = mysql_fetch_row($result);
$a = array($row);
while ($row = mysql_fetch_row($result))
{
list($carparkName, $busyFee) = $row; echo "<option value>
$carparkName, $$busyFee</option>";
}
?>
</select>
<input type="button" name="Button" value="Submit" onClick="checkForm()">
我submit后
echo $_POST['fee']就会把$carparkName, $busyFee的值显示出来
可是我只想要$carparkName的值
怎样才可以只显示 $carparkName呢@@