i have a function to generate more text boxes.
function AddBoiler()
{
var tbl=document.getElementById('boilertable');
var num_rows = tbl.rows.length;
var row = tbl.insertRow( num_rows );
var y=row.insertCell(0);
var z=row.insertCell(1);
y.innerHTML='<label class="desc" id="Boiler_Model1" for="boilermodel1">Boiler Model</label> ';
z.innerHTML='<label class="desc" id="boilerCP" for="Field30">Boiler CP (Serial) Number</label';
var num_rows = tbl.rows.length;
var row = tbl.insertRow( num_rows );
var y=row.insertCell(0);
var z=row.insertCell(1);
y.innerHTML='<input id="boiler1" class="field text medium" name="bolier[][model]" style="width:250px" type="text" maxlength="255" value="" /> ';
z.innerHTML='<input id="boiler1CP" class="field text medium" name="bolier[][cp]" style="width:250px" tabindex="20" type="text" maxlength="255" value="" />';
}
and originally i have 3 text boxes with the same name name="bolier[][model].now when i have to refer to this array variable when i insert data in it to the database table.
1.Do i just use $_POST[bolier[][model]??
2. do u think i need a hidden field and have a counter for the number of rows inserted to refer to the value in it??
I wud greatly appreciate ur suggestion.