I am using these two for each loops for two sets of check boxes
foreach ($Module as $Mods) {
$Modtext.=$Mods . " ";
}
foreach ($RTP as $RTPPos) {
$RTPJob.=$$RTPPos . " ";
}
Both of these loops work, but I receive this error regarding header errors
Warning: Invalid argument supplied for foreach() in /usr/home/dave/www/formmailer.php on line 6
Warning: Invalid argument supplied for foreach() in /usr/home/dave/www/formmailer.php on line 10
Warning: Cannot add header information - headers already sent by (output started at /usr/home/dave/www/formmailer.php:6) in /usr/home/dave/www/formmailer.php on line 96
How do I tell the PHP that these foreach loops are not headers? I cheated by putting this
header("Location: Thanks.html");
which is usually on the bottom on the first line just to get my checkboxes working. Unfortunately that kills my error checking. Any ideas ? Thanks in advance.