single ecart var to hold multiple values?
I have a item that can be chossen for more than one location and they are choosen from a group of checkboxs which I just made a simple loop for :
<?php do { ++$i?>
<input <?php if (isset($_POST['Pub_'.$i])) {echo "checked=\"checked\"";} ?> type="checkbox" name="Pub_<?php echo $i;?>" value="<?php echo $row_rs_member_list['ID'];?>" /><?php echo $row_rs_member_list['PUB_NAME']; ?><br />
<?php } while ($row_rs_member_list = mysql_fetch_assoc($rs_member_list)); ?>
so from this I can end up with 1 to 20 or more values "Pub_1=123&Pub_3=124" and so on... I wanted to know if I could store this sting in a ecart column in this format?
I tried to make it sort the value in an array but it would not store it correctly
do {
if (isset($_POST['Pub_'.++$iurl])) {
$Publist[] = $_POST['Pub_'.$iurl];
}
} while ($iurl != $totalRows_rs_member_list); $iurl = 0;