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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to submit page when clicking a checkbox

Status
Not open for further replies.

shbr5413

Programmer
Nov 19, 2024
1
I have an ASP Classic website using VBScript. The page displays a set of products (vintage fishing rods). I have created a sidenav that lists the makers (brands) as checkboxes; I have a form with a button that submits the page when the "Makers" button is clicked, which re-freshes the page and displays only the products for the Makers that were selected. I want to upgrade this such that a user doesn't have to click the Makers button to refresh the page...
I want to...
1. Refresh the page for each button that is clicked
2. Retain each button that is clicked
3. I can keep the "Select All" button to refresh the sidenav to all unclicked...

Can someone help me solve this?

Thank you

My code for this is below...

<form method = "post" >
<input type = "submit" value = "Makers" style="height:35px; width:75px font-size:.7rem;" />
<input type = "submit" value = "Select All" style="height:35px; width:75px font-size:.87rem;" />
<% for i = LBound(subIDArray) to UBound(subIDArray)%>
<br>
<input type="checkbox" name="maker" value="<%=subIDArray(i)%>" /><%=subCATArray(i)%>
<%next %>

<%
menuarray = ""
menuarray = Request.Form("maker") ' Name of the Control
%>

</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top