I have a form that loops out a list of products from a mySQL database. beside each product is 2 checkboxes. one is for deleting and another is for selecting a product to go into a storefront.
on the second page I have a implode() to seperate each product with commas. then it puts the list into a query and deletes them one by one.
my problem is the only way to use a implode is to use $POST by itself without the element ($POST['var'])
what if the user checks some boxes to put into the storefront and checks some boxes to delete. how can i filter the two so i wont get them mixed up and end up deleting something that probably was suppose to be stored in the storefron