Bit of background info - the developer of the system we use has left the company and I've been asked to add a few new features. Needless to say, there's no documentation and to make matters worse I'm an absolute novice so am having to learn as I go along. I'm kind of managing to do most things but have come totally stuck on this problem. For anyone kind enough to help me out, if you could really dumb any answers down that would be great. So, the problem........

HTML page that is dynamically populated with a list of items. For each item in the list there's a checkbox, and for each checkbox that's ticked I need to update a MySQL database. The code that adds the checkboxes to the page is

```
echo("<td class=\"tableRight\" style=\"width: 5%\"><input type=\"checkbox\" name=\"costume[]\" value=\"".$costume['id']."\" id=\"costume_".$costume['id']."\" onclick=\"tickrow(".$costume['id'].");\" /></td>");

```

The JavaScript file is loaded in the page head with

```
<script src=\"costume-list.js\" type=\"text/javascript\"></script>

```

The button's code that should kick off the database update is

```
echo("<div class=\"navContainer\" onClick=\"batch_move() \" class=\"navItem\">");
echo("<img src=\"/resource/img/icon/move.png\" border=\"0\" /><br />Batch Move Costumes");
echo("</a></div>");

```

And finally the JavaScript I've managed to put together is

```
function batch_move() {

var combo = document.getElementById("cbo_title");
var move_to = combo.options[combo.selectedIndex].text;
var move_to_id = combo.options[combo.selectedIndex].value;

if (move_to.length==0) {
alert("Please select the location you want to move the costumes to.");
return;
}

var resp_move = confirm("Are you sure you want to MOVE the selected costumes to "+move_to+" ?");

if (resp_move==true) { 
   alert("Lets move em");
   window.open ("http://path-to-server/costume/batch-move-costume.php?  loc="+move_to_id+"&items="+INeedTheArrayHere,"mywindow","menubar=1,resizable=1,width=350,height=250");
}

```

}

So what I want to do is first make sure that at least one checkbox is ticked and if it is then get the values of the ticked boxes into an array to pass to the called PHP form. I can manage the update code in the opened form, it's just getting the array to it.

Sorry for long post, but hope that's enough info. If there's anything else you need to know please ask and I'll supply more details. Many thanks