I keep getting undefined array key errors in my newsletter infusion which I modified to work under Fusion 8.00.80... This is the line that gives the error:
$send_array = ($_POST['send_to']);
$list = implode(",",$send_array);
$to_email = $list;
$list_array = explode(",",$to_email);
reset($list_array);
foreach($list_array AS $to_mail) {
This is the actual array line:
// Select site users single/multiple/all send
echo "<td class='tbl2' valign='top' align='left'><a href='' class='addspeech' title='".$locale['nl_931']."' rel='#speechbubble4'><img src='images/help.gif' border='0' alt='' /></a> <span style='font-size: 17px; font-weight: bold;'>".$locale['nl_464']."</span></td><td class='tbl1' valign='top' align='left'><table cellspacing='0' cellpadding='0' border='0'><tr>n";
echo "<td valign='top' align='left' width='260'><input type='checkbox' name='delivery' value='um1'".$um1." />".$locale['nl_442']."</td>n";
echo "<td valign='top' align='center'><select name='send_to[]' multiple='true' size='8' class='textbox' style='width:295px;'>";
$result = dbquery("SELECT * FROM ".DB_NEWS_LETTER_SUBS." WHERE nl_sub_stat ='1' AND nl_sub_who='1' ORDER BY nl_sub_name");
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$selected = (isset($_GET['nl_sub_mail']) && $_GET['nl_sub_mail'] == $data['nl_sub_mail']) ? 'selected="selected"' : '';
echo "<option value='".$data['nl_sub_mail']."'$selected>".$data['nl_sub_name']." - ".$data['nl_sub_mail']."</option>n";
}
}
echo "</select></td></tr></table></td>n";
echo "</tr><tr>n";
// End select site users single/multiple/all send
Am I doing the $send_array line wrong? Should it be like this?
$send_array = (($_POST['send_to']));