我有一個下拉列表與數據庫中的客戶名稱。我希望這些值能成爲我的'href'屬性的鏈接。我該怎麼做?下拉與php鏈接
<select class="feedback-input" id="customer_selecter" name="customerName">
<option >Select customer</option>
<?php foreach ($customers as $row): ?>
<a href="<?php echo base_url() . "index.php/edit/show_customer_id/" . $row->customerID; ?>">
<?php echo '<option value="'.$row->customerID.'">'.$row->customerName.'</option>'; ?></a>
<?php endforeach; ?>
</select>
[使用href鏈接內部