'; } ?> 3. When we run the code, it will show up as in the following screenshot. 4. Once the form is submitted, we will get the selected orders' IDs in the $orderIds array. We can loop over this, and call the UpdateStatus method to change the status in the table. We add the following code right after creating $orderObj in processOrders.inc.php. // If we got order IDs to process, do that if ($_REQUEST['orderIds']) { echo "
Processing...
"; $updated = 0; foreach($_REQUEST['orderIds'] as $orderId) { $ordObj->Load($orderId); // Change the status to 'Processing.