this was the form that i made in my php
<form>
<table>
<tr>
<td><div align="left">Jenis Document</div></td>
<td><input type="text" id="jnsdcm" value="BC 2.3"></input></td></tr>
<tr>
<td><div align="left">Dokumen Pabean</div></td>
<td>Nomor: <div align="left"><input id="nomor" type="text"></input></div> Tanggal :<div align="left"><input id="tanggal" type="text"></input></div></td>
</tr>
<tr>
<td><div align="left">Pemasok/Pengirim</div></td>
<td><select id="supplier">
<option selected = "selected" >-Pemasok/Pengirim-</option>
<?php
$q = mssql_query("SELECT DISTINCT SupplierName from vwOutstandingNPBB");
while ($r = mssql_fetch_array($q)){
echo "<option value='$r[SupplierName]'>$r[SupplierName]</option>";
}?>
</select>
</td>
</tr>
<tr>
<td><div align="left">Barang</div></td>
<td><input type="text" id="barang"><input type="button" id="nmbarang" onclick="popup_window_show('#sample', { pos : 'tag-right-down', parent : this})" value="Tambah Nama Barang"></button></td>
</tr>
<tr><td colspan="2"><input type="button" value="Save" id="save"><input type="reset" value="Cancel" id="reset"></td></tr>
</table>
</form>
On "Barang", filled by checked data of submitted multiple checkbox input data. I have problem to submitted checked data to that field. here the code of multiple checkbox data
<?php
include 'config/koneksi.php';?>
<form method='POST'>
<table>
<tr>
<th bgcolor="#1E90FF"><div align='center'>Pilih</div></th>
<th bgcolor="#1E90FF"> <div align='center'><b>Kode Barang</div></b></th>
<th bgcolor="#1E90FF"> <div align='center'><b>Nama barang</div></b></th>
<th bgcolor="#1E90FF"> <div align='center'><b>Sat</div></b></th>
<th bgcolor="#1E90FF"> <div align='center'><b>Jumlah</div></b></th>
<th bgcolor="#1E90FF"> <div align='center'><b>Nilai Barang</div></b></th>
</tr>
<?php $nama = $_POST['supplier'];
$id = mssql_query("SELECT TOP 20 * ,(QntyBuy*UnitPrice) as Total FROM vwOutstandingNPBB WHERE SupplierName = '$nama'");
while($k = mssql_fetch_array($id)){
$total = number_format($k['Total'],2,',','.');
echo"
<tr>
<td><input name='ItemID[]' type='checkbox' value= '".$k['ItemID']."'></td>
<td>$k[ItemID]</td>
<td>$k[ItemName]</td>
<td>$k[PurchaseUOMName]</td>
<td> $k[QntyBuy]</td>
<td>$k[CurrencyID] $total</td>
";}
echo"</table>";
echo"</tr><br><input type='submit' value='Add'></br></table></form>";
?>