• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multiple textboxentries .....How-to

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic