Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selectbox Problem

Status
Not open for further replies.

byrne1

Programmer
Aug 7, 2001
415
0
0
US
I have a form that loops through a recordset and displays record items via an HTML table. Each row has a selectbox and there is one submit button on the form. What I want to do is, on the next page, to be able to determine which select boxes the user clicked.

Any ideas???
 
byrne1,

First you need to make your checkbox the same name and only the value that will vary depending on your db.

For example

assuming your recordset object is

<input type=&quot;checkbox&quot; name=&quot;chkbox&quot; value=&quot;<%=rs(&quot;ID&quot;)%>&quot;>


your asp code would be

For i = 1 to Request(&quot;chkbox&quot;).Count
emailadd = Request(&quot;chkbox&quot;)(i)
repsonse.write emailadd
Next

HTH...

Happy programming...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top