我有 3 张桌子说:-
发票详细信息、客户详细信息和帐单地址。
发票表格有adropdown和 a checkbox。Customer names列在下拉列表中customer table。当我选择一个customer name复选框值时,必须具有相应的billId.
因此,当我标记复选框时,复选框的值必须是billId已选择的客户名称。我希望我的问题很清楚。
查看页面:-
<div class="row space">
<label class="control-label">Customer <span class="manda">*</span></label>
<select class="form-control" name="customerId" id="customerId">
<option value="0">Choose....</option>
<?php
if ($customer) {
foreach ($customer as $row) {
echo "<option value='".$row->customerId."'>".$row->customer_name."</option>";
}
} ?>
</select>
</div>
<div class="row space">
<div class="col-sm-6">
<input type="checkbox" name="checkbox" value="bill">
<label>Bill To</label>
</div>
</div>
我怎么能这样做呢?请帮我...
customerId是普遍存在的3 tables。
表格详细信息:-
bill_address(billId, customerId, street, city, state, country).
customer_details(customerId, customer_name, phone, email,..).
invoice_details(invoiceId, customerId, billId, date, status,..).
猛跑小猪
幕布斯6054654