On my page 1 I have 5 checkboxes. 2 and 4 are checked/disabled based on data from the database. User checks off checkbox 5 and clicks submit.
on page 2 I want to use request.form to see the newly checked checkbox BUT I also need to keep track of the already checked checkboxes for an if statment. Problem is the disabled check boxes don't send any info on submit. Therefore I want to create a function on my submit "onsubmit='return enableboxes();'" to enable the boxes. HOWEVER when I try to create the function I can't use
because the checkbox name does NOT appear in the list and I think it is because I have server-side coding in the checkbox input tag, see below. Can anybody help?? Here the the check box code.
Any help would be greatly appreciated.
on page 2 I want to use request.form to see the newly checked checkbox BUT I also need to keep track of the already checked checkboxes for an if statment. Problem is the disabled check boxes don't send any info on submit. Therefore I want to create a function on my submit "onsubmit='return enableboxes();'" to enable the boxes. HOWEVER when I try to create the function I can't use
Code:
document.formAthruF."checkbox"
Code:
<FORM action="checkentries.asp" onsubmit='return enableboxes();' method=POST id=formAthruJ name=formAthruJ>
<input type="checkbox" Name="A1" <% if row1RS("col1")="SOLD" then Response.Write "CHECKED DISABLED" %>>A1
<input type="checkbox" Name="A2" <% if row1Rs("col2")="SOLD" then Response.Write "CHECKED DISABLED" %>>A2
<input type=submit name=submit value=Submit>
<input type=reset name=reset>
</FORM>