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>&nbsp;</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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -