Posted by Ryan Lange on 11/04/86 11:41
noone wrote:
> reformated for readability
>
> $table_rows .= "<td id=\"td\" align=\"center\" style=\"". $style;
> $table_rows .= "padding:5px\" ><input type=\"checkbox\" name=deletethis[]";
> $table_rows .= " value=\"" . $row['inj_id'] . "\"></td>\n\t";
>
> hopefully I got all of the missing quotes and dots.
You missed a few quotes in there (that's why I refuse to use
double-quotes for outputting HTML):
$table_rows .=
'<td id="td" align="center" style="' . $style . 'padding:5px">' .
'<input type="checkbox" name="deletethis[]"' .
' value="' . $row['inj_id'] . '"></td>' . "\n\t";
This will only return the boxes that are checked, so once you get
the array from the unsubscribe page, you'll need to get the original
list from the database, compare the two, then delete the ones that
appear in the original list, but not in the new list.
- Ryan
[Back to original message]
|