hello guys...
today i need again help...
actually i face problem the in adding new row at run time...
coding....[code=html]
<html>
<script type ="text/javascript">[/code][code=javascript]
var counter=0;
function addRow()
{
var trow=document.g etElementById(' tblGrid').inser tRow();
var tdata1=trow.ins ertCell(0);
var tdata2=trow.ins ertCell(1);
tdata1.innerHTM L="<input type='text' id='product' maxlength='50' class='Text' name='product'> ";
tdata2.innerHTM L="<input type='text' id='price' maxlength='50' class='Text' name='price'>";
}
[/code][code=html]
</script>
<body>
<form name="sample" action="sample1 .php" method="post">
<table id="tblGrid" style="table-layout:fixed">
<tr>
<th width="150">Pro duct Name</th>
<th width="150">Pri ce</th>
<input name="button" type="button" onClick= "return addRow();" value="Add" >
<input type="submit" value = "save" name="submit">
</tr>
<tr>
<td height="21"></td>
<td></td>
<td width="14">&nbs p; </td>
</tr>
</table>
</form>
</body>
</html>
[/code]
the above is my code which create the row dynmically...
my problem is thati want to store the value of each row in database using php...
how we accomplish this task...
pleas tell me...
i try last one week but not successfull...
so please help me...
and send me the solution...
i requested u to please try solve this problem using example...
i shall be very thank ful to you...
i wait your reply...
vivek kumar
today i need again help...
actually i face problem the in adding new row at run time...
coding....[code=html]
<html>
<script type ="text/javascript">[/code][code=javascript]
var counter=0;
function addRow()
{
var trow=document.g etElementById(' tblGrid').inser tRow();
var tdata1=trow.ins ertCell(0);
var tdata2=trow.ins ertCell(1);
tdata1.innerHTM L="<input type='text' id='product' maxlength='50' class='Text' name='product'> ";
tdata2.innerHTM L="<input type='text' id='price' maxlength='50' class='Text' name='price'>";
}
[/code][code=html]
</script>
<body>
<form name="sample" action="sample1 .php" method="post">
<table id="tblGrid" style="table-layout:fixed">
<tr>
<th width="150">Pro duct Name</th>
<th width="150">Pri ce</th>
<input name="button" type="button" onClick= "return addRow();" value="Add" >
<input type="submit" value = "save" name="submit">
</tr>
<tr>
<td height="21"></td>
<td></td>
<td width="14">&nbs p; </td>
</tr>
</table>
</form>
</body>
</html>
[/code]
the above is my code which create the row dynmically...
my problem is thati want to store the value of each row in database using php...
how we accomplish this task...
pleas tell me...
i try last one week but not successfull...
so please help me...
and send me the solution...
i requested u to please try solve this problem using example...
i shall be very thank ful to you...
i wait your reply...
vivek kumar
Comment