Easiest way to do it when you have multiple instances of the same set of formfields is by using arrays for their names:
<input type="text" name="order[]">
That would result in an array of values in your $POST, starting at:
$_POST['order'][0]
to process you go:
foreach($_POST['order'] as $key=>$order)
{
// Proces each order here, it will go through the array and retrieve each order
// access the checkbox:
$checkvalue = $_POST['checkboxname'][$key];
}
I am not sure whether the checkboxes would 'play fair', as only th eones that are checked are submitted. If they do not increatement their array key properly, you might have to add the 0, 1, 2, etc to the brackets yourself:
<input type="text" name="order[0]">