I am working on developing a an order management screen for an eCommerce solution that, when a link relative a specific order is clicked, will export information for that order and populate a page that is hosted on a different domain that is also owned by my company.
Here is a simplified, hypothetical version of my code:
foreach ($orders as $order_number) {
echo '<a href="http://www.anotherdomain.com/shipping_info.php">View shipping info for Order #' . $order_number . '</a>';
}
Then I also have an array called $shipping_info
containing individual arrays of info on each order.
This loop will create links to view information for each order number in the array. When the user clicks the link for "View shipping info for Order #100" they should be taken to the the http://www.anotherdomain.com/shipping_info.php page populated with info from $shipping_info[100]
, which is also an array.
What is the best way to accomplish this?