Forum Moderators: coopster
$wichcheckboxes = 'check1,check4,check7,check15';
$chkarr = split(',',$wichcheckboxes);
then when you check each checkbox you could do something like
<input type="checkbox" name="chkbox[]" value="check1" <? if(in_array('check1',$chkarr)) echo ' checked';?>>
should work. If the checkbox values were numbered you could also just use a loop to build them all and check all in a couple lines of code.