"check all" checkbox....with a problem

wxdqz

New Member
Okay, I have a column of checkboxes, plus one at the top that should check all the following checkboxes when clicked, and uncheck them all when unclicked. That's fine, I got that working. But unfortunately, I also want to pass these checkbox values onto PHP, which requires me to have the name attribute set to "files[]" for each one. And this doesn't want to work in JavaScript.:(

I've tried a bunch of workarounds, but could anyone give me one that works? I don't really care what it takes, if it takes some extra hidden input fields or whatever to store the value of each checkbox, then go right ahead. I just need this worked out...
 
Top