Hi all,
I have a script that posts 3 arrays to the next screen like so:
surface[]
level[]
product[]
Once they're posted to the next screen i get the details like so:
$product = $_POST['product'];
$level = $_POST['level'];
$surface = $_POST['surface'];
foreach($product as $value){
echo "$value<br>";
}
This echoes all of the products (on a new row for each value - so many rows) from the product[] array.
What I need is the $product,$level and $surface in one row and then on the row below the same but the [1] values and then below that the [2] values.
I've tried:
foreach($product as $value){
echo "$value,";
foreach($soil as $value1){
echo "$value1<br>";
}
}
But this repeats many of the data.
Hope this makes sense, really need help here?!?!
Thanks