The whole
ml_admin_transact.php code starting on page 477 all the way to page 480 is the wrong file.
The code that is in the book, is the code used later as
ml_user_transact.php
You can see in the How it Works section on page 483 that the code should be:
PHP Code:
switch ($action) {
case 'Add New Mailing List':
...
break;
case 'Delete Mailing List':
...
break;
case 'Send Message':
...
break;
}
but what you get is code for
Subscribe,
Confirm and
Remove.
It seems like
ml_admin_transact.php does not appear in the book, but you can get the idea in the How it Works section following on page 481.