problem in passing multiple checkbox values

Reply

Join Date: Aug 2005
Posts: 52
Reputation: spidey is an unknown quantity at this point 
Solved Threads: 0
spidey's Avatar
spidey spidey is offline Offline
Junior Poster in Training

problem in passing multiple checkbox values

 
0
  #1
May 12th, 2006
hi,

i have a problem in passing multiple checkbox values.

the page displays records (pending invoices). each record has a checkbox on the last column. the user must check the boxes of the records he/she wishes to update.
[html]
<table>
<tr>
<td>label1</td>
<td>label2</td>
<td>label3</td>
</tr>
<%do while rs.eof%>
<tr>
<td>nth record's field1</td>
<td>nth record's field2</td>
<td>input type='checkbox' value='nth record's field3 (variable to be passed'></td>
</tr>
<%rs.movenext
loop%>
</table>
[/html]
below the table is an update button. if the user clicks it, the variables will be passed into a popup. the user will choose whether to put the records in the group of printed or cancelled ones.

i cud not fix the error on the page. i hope u cud help me solve this problem. i've been working on it for some time now.

thank u in advance. more power to u & to daniweb.

francis
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: problem in passing multiple checkbox values

 
0
  #2
May 12th, 2006
i cud not fix the error on the page
what error?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 89
Reputation: msaqib is an unknown quantity at this point 
Solved Threads: 1
msaqib msaqib is offline Offline
Junior Poster in Training

Re: problem in passing multiple checkbox values

 
0
  #3
May 12th, 2006
<table>
<tr>
<td>label1</td>
<td>label2</td>
<td>label3</td>
</tr>
<%do while rs.eof%>
<tr>
<td>nth record's field1</td>
<td>nth record's field2</td>
<td>input type='checkbox' value='nth record's field3 (variable to be passed'></td>
</tr>
<%rs.movenext
loop%>

</table>
You must put the CheckBoxes in a Form and must provide the same name to all the check boxes. Then on the next page you will have the collection of checkboxex which were checked. Your code on the next page will be
  1. For each CheckedItem in Request.Form("checkBoxName")
  2. 'do what ever u want
  3. next
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC