Hey,
This is very simple. When all the checkboxes share the same name during the form submit the checkbox name will have the values of which the check boxes are checked
For eg CB(1) value is 1,CB(2) value is 5 and CB(3) value is 6 In this user selected CB(1) and cb(2) then the request(cb) will have 1,5 as value
The code for this will be like below
<input type="checkbox" name="purpose" value="1" />
<input type="checkbox" name="purpose" value="2" />
<input type="checkbox" name="purpose" value="3" />
<input type="checkbox" name="purpose" value="4" />
<input type="checkbox" name="purpose" value="5" />
<input type="checkbox" name="purpose" value="7" />
ASP Code will be
<%
strPurpose =request("purpose")
strPurposeArray=split(strPurpose,",")
For i=0 to ubound(strPurposeArray)
response.write strPurposeArray(i) & "<br>"
Next
%>
The above code will get all the values and print in the screen.
Albert Arul prakash
http://www.bepenfriends.com