The unsubscribeList.inc file, containing the arrays used to display the
unsubscribeList form, is shown in listing BC-12. The ControlPanel script
displays this form when the user clicks an Unsubscribe button.
74
PHP and MySQL Everyday Apps For Dummies
LISTING BC-11: (Continued)
“listID” => “”,
“email” => “”,
);
$types = array( “style” => ‘select’,
“format” => ‘select’,
“listID” => ‘input type=”hidden”’,
“email” => ‘input type=”hidden”’,
);
$styles = array( “style” => “listName”,
“format” => “listDescription”,
“listID” => “hidden”,
“email” => “hidden”
);
$options = array( “style” => $styleOptions,
“format” => $formatOptions
);
?>
LISTING BC-12: UNSUBSCRIBELIST.INC
<?php
/* File: subscribeList.inc
* Desc: Contains arrays with the field names and
* elements for the subscribeList form.
*/
$page = array( “title” => “Unsubscribe to: $listName”,
“top” => “Unsubscribe to: $listName”,
“bottom” => “Send questions and comments
to admin@ourplace.com”,
);
$elements = array( “top” => “”,
“bottom” => “”,
“submit” => “Unsubscribe”,
);
$fields = array( “style” => “Message Style”,
575872 bc.qxd 5/25/05 1:47 PM Page 74

Get PHP & MySQL® Everyday Apps For Dummies® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.