php - Input Double Value with Ajax -
how input 2 value in database ajax? or maybe have solution
php
$model_reservasi_detail = new tmreservasidetail; $model_reservasi_detail->idreservasi = $model->idreservasi; $model_reservasi_detail->nokamar = $_post["idkamarbed"][$i]; $model_reservasi_detail->idkamar = $_post["nokamar"][$i];
ajax
html += "<td align='center'><input type='checkbox' value='"+obj[key]["nokamar"]+"' id='idkamarbed_"+obj[key]["idkamar"]+"' name='idkamarbed[]'></td><td> </td><td align='center'><b>"+obj[key]["nokamar"]+"</td><td align='center'><b>"+obj[key]["kapasitas"]+"</b></td>";
in code input nokamar. how input idkamar too? can replace "nokamar" "idkamar"
Comments
Post a Comment