troubleshooting Question

Managing unchecked checkboxes in array after post

Avatar of hrj5721
hrj5721 asked on
Microsoft SQL ServerASPVB Script
18 Comments1 Solution1023 ViewsLast Modified:
Please pardon any misusage of terms if any. That being said here is my dilemma.
Within a basic form I have an array of 15 checkboxes all named "appliances" of which none, any or all can be checked. On submit my handling page properly post all the needed data to the DB just fine. However at the end of this page script I am sending to emails out vial SMTP send using the data values from the posting form before closing the connection to the DB.
I can collect everything without issue except for the checkbox values without causing an array out of range error. These I know are due to the unchecked box values being void. I have tried to use the "Request.Form("appliances")(1)" approach, which again works just fine if you check all the boxes.
Is there a way to provide a value of the uchecked box or a way to use the "Request.Form" method with a for loop around it so as to keep the array in range? I would rather not try to get the data from the DB if at all possable seice I have all the data in the posted form. Thank you!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros