am trying to get the results from $num
and $name
simultaneously. That is where:
num[0] = name[0]
it seems to start running but uses the first value gotten from $num for all the values of $name
.
<?php
$name = $_POST['name'];
$num = $_POST['num'];
foreach ($num as $num){
foreach ($name as $name){
$num * $name
}
}
?>