OK - I'm struggling with this a bit. On my update page I've got a series of checkboxes created dynamically for the rsOccasions recordset. I've mimicked your code as follows:
<input type="checkbox" name="Occasions[]" value="<?php echo $row_rsOccasions['OccasionName']; ?>"
<?php if(isset($row_rsOccasions['OccasionName']) && is_array($row_rsOccasions['OccasionName'])) {
if(in_array($row_rsOccasions['OccasionName'], $row_rsOccasions['OccasionName'])) echo("checked=\"checked\"");
}
?>
Could you let me know if this is correct and what code I need for the explode function and where to put it.
Thanks.