You don't need session arrays.
One way to do it is this:
<?php
$imagequery = "SELECT * FROM Image";
$result = mysql_query($imagequery) or die("Invalid query: " . mysql_error());
while ($row = mysql_fetch_array($result)) {
?>
<p><img src="<?php echo $row['ImageLoc']; ?>" width="100" height="100" /></p>
Select image <input type="checkbox" name="image[]" value="<?php echo $row['ImageLoc']; ?>" />
<?php
}
?>
</form>
This way, the checkbox lines will look like this:
<input type="checkbox" name="image[]" value="43" />
<input type="checkbox" name="image[]" value="9" />
<input type="checkbox" name="image[]" value="27" />
Then, on the next page, you can look through the $REQUEST or the $POST variable for "image" like this:
$imagelist = array();
foreach ($_REQUEST as $k=>$v) { if ($k=="image") { $imagelist[] = $v; } }
print_r($imagelist);