Menu
Iam trying to display data coming from three sets of arrays. $product[], $price[] and $platform[]. I am able to display products array of data correctly by using:
[code=php]
foreach ($_POST[“product”] as $product)
{
$product = “, “.trim($product);
$body .= “Product: $product”;
}
now if i try to do two variables then it doesn work..does anyone know how to give multiple conditions the the foreach()? such as?
[code=php]
foreach (($_POST[“product”] as $product) && ($_POST[“price”] as $price))
{
$product = “, “.trim($product);
$body .= “Product: $product”;
$price = “, “.trim($price);
$body .= “price: $price”;
}