Hi all ! I'm getting errors, one other person posted here, and I could not find the response.....
Warning: Invalid argument supplied for foreach() in /home/site/www/catalog/wishlist.php on line 117
Warning: Invalid argument supplied for foreach() in /home/site/www/catalog/wishlist.php on line 145
The lines are :
//Check each posted name => email for errors.
$j = 0;
[b]foreach($HTTP_POST_VARS['friend'] as $friendx) {[/b] if($j == 0) {
if($friend[0] == '' && $email[0] == '') {
$error = true;
$email_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_ONE_EMAIL . "</div>";
}
}
and
if($error == false) {
$j = 0;
[b]foreach($HTTP_POST_VARS['friend'] as $friendx) {[/b]
if($friendx != '') {
tep_mail($friendx, $email[$j], $subject, $friendx . ",\n\n" . $body, $from_name, $from_email);
}
HELP ! ;-p