i have now tried this in the real code and I am hitting an error which is related to the previous post
////////////////////////////
///this is the form tag///
///////////////////////////
<form action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>" method="post" name="LWV_1_ATC_0" id="LWV_1_ATC_0" onsubmit="WAValidateRQ(document.LWV_1_ATC_0.LWV_1_Quantity_Add,'Please enter the quantity you require.',document.LWV_1_ATC_0.LWV_1_Quantity_Add,0,false,'text');WAValidateRQ(document.LWV_1_ATC_0.Pub,'Please select which venues are to receive this design.',document.LWV_1_ATC_0.Pub,0,true,'checkbox');WAValidateRQ(document.LWV_1_ATC_0.designtype,'Please select the type of design you require.',document.LWV_1_ATC_0.designtype,0,true,'select');WAValidateRQ(document.LWV_1_ATC_0.designsize,'Please select what size you require for this design.',document.LWV_1_ATC_0.designsize,0,true,'select');WAAlertErrors('The following option(s) are required before we can add this design to you order\n\n','\n\nIf you are experiancing issues this order please call our support team on : 0844 504 6914 \n',false,document.getElementById('LWV_1_ATC_0'),false);return document.MM_returnValue">
/////////////////////////////////
///this is the checkbox loop //
/////////////////////////////////
<?php if (isset($_SESSION['site_lvl'])) {?>
<fieldset><legend><span class="logintxt">Venues to recieve this design</span></legend>
<input name="allbox" type="checkbox" onclick="flevToggleCheckboxes('LWV_1_ATC_0',true,false)" value="on" /> Select all venues<br />
<?php do { ++$i ?>
<input type="checkbox" <?php if (in_array($row_rs_member_list['ID'], $SelectedPubList, TRUE)) {echo "checked=\"checked\"";} ?> name="Pub[]" value="<?php echo $row_rs_member_list['ID'];?>" id="Pub" />
<?php echo $row_rs_member_list['PUB_NAME']; ?><br />
<?php } while ($row_rs_member_list = mysql_fetch_assoc($rs_member_list)); $i=0; ?><br /><input name="Re-calculate" class="cust_button" type="submit" value="Re-calculate" />
</fieldset>
<?php } ?>
//////////////////////
It appears that unless I tick the first checkbox in the list I get the validation error, totally confused now