
hi sir,
how to insert multiple columns of a single row into my sql database using jsp. when i click ADD ROW,rows are added.when i click submit the data in the row must be added into database. the following code is
<body>
<form method="post" action="addingrow.jsp">
<TABLE align="center" border="2" cellPadding="1" id="StockSolutionTable" cellSpacing="1" BORDERCOLOR="#339900">
<thead>
<tr>
<TH>SL.No</TH>
<TH>Type Of Solution</TH>
<TH>Name</TH>
<TH>Batch No</TH>
<TH>Quantity Used(ml)</TH>
</tr>
<tr>
<TD> <INPUT type="text" name="no"/> </TD>
<TD> <INPUT type="text" name="type"/> </TD>
<TD> <INPUT type="text" name="name"/> </TD>
<TD> <INPUT type="text" name="batch"/> </TD>
<TD> <INPUT type="text" name="qused"/> </TD>
</tr>
</thead>
</TABLE>
<p></p>
<INPUT type="button" value="Add Row" onclick="addRow('StockSolutionTable')" />
<input type="button" value="Submit">
</form>
</body>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.