Specifications

The extra options they have are Create List (create a new mailing list), Create Mail (create a
new newsletter), and View Mail (view and send created newsletters that have not yet been
sent). We will look at each of these in turn.
Creating a New List
If the administrator chooses to set up a new list by clicking on the Create List button, she will
activate the create-list action, which is associated with the following code:
case ‘create-list’ :
{
display_list_form(get_email());
break;
}
The display_list_form() function displays a form that enables the administrator to enter the
details of a new list. It can be found in the output_fns.php library. It just outputs HTML, so we
will not go through it here. The output of this function is shown in Figure 28.11.
Building a Mailing List Manager
C
HAPTER 28
28
BUILDING A
MAILING LIST
MANAGER
693
FIGURE 28.11
The Create List option requires the administrator to enter a name and description (or blurb) for the new list.
When the administrator clicks on the Save List button, this activates the store-list action,
which triggers the following code in index.php:
34 7842 CH28 3/6/01 3:46 PM Page 693