複製程式
<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呢@@