Hi,
I am still kind of new to advanced PHP coding.
My problem is that this loop obviously only checks the first $hometeam and $awayteam var and if they arent 0 then carries on. How can I modify it to check all the $hometeam and $awaytem vars before it continues?
Thanks in advance.
for ($i=1; $i <= 10; $i++) {
$hometeam = ${"hometeam".$i};
$awayteam = ${"awayteam".$i};
if ($hometeam == 0 || $awayteam == 0) {
echo 'Please '._GOBACK.' and select ALL teams';
showfooter();
} else {
echo "ALL OK!";
showfooter();
}
}