today i need again help...
actually i face problem the in adding new row at run time...
coding....
Expand|Select|Wrap|Line Numbers
- <html>
- <script type ="text/javascript">
Expand|Select|Wrap|Line Numbers
- var counter=0;
- function addRow()
- {
- var trow=document.getElementById('tblGrid').insertRow();
- var tdata1=trow.insertCell(0);
- var tdata2=trow.insertCell(1);
- tdata1.innerHTML="<input type='text' id='product' maxlength='50' class='Text' name='product'>";
- tdata2.innerHTML="<input type='text' id='price' maxlength='50' class='Text' name='price'>";
- }
Expand|Select|Wrap|Line Numbers
- </script>
- <body>
- <form name="sample" action="sample1.php" method="post">
- <table id="tblGrid" style="table-layout:fixed">
- <tr>
- <th width="150">Product Name</th>
- <th width="150">Price</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"> </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
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