| Author |
multiple textboxentries .....How-to
|
Sanjay Deshpande
Ranch Hand
Joined: May 22, 2001
Posts: 111
|
|
I ve a check box with textbox. anything entered in textbox and a checkbox checked should be had on next page.... The code goes like this ------------------TO DISPLAY---------------- <td width="100"><font color="000000" face="Book Antiqua"> <%=rs.getString("pub_name")%> </font></td> <td><font color="000000" face="Book Antiqua"> <input name="nam" > </td> -------------------------------------------- --------NEXT SAVE PAGE:--------------------- String[] p = request.getParameterValues("Check"); String[] np = request.getParameterValues("nam"); count=p.length; out.println(count); for(int i=0;i<count; i++) { //stmt1.executeUpdate("Update publishers set pub_name='sanjay' where pub_id="+p[i]); //out.println(p[i]+np[i]+"<br>"); out.println(p[i]+np[i]+"<br>"); } =============================================== I M GETTING ONLY THE FIRST VALUE OF TEXT ..NO NEXT VALUES R COMING TO NEXT PAGE
|
 |
 |
|
|
subject: multiple textboxentries .....How-to
|
|
|