Multiple List Subscription Form Example

- NAME multiple_subscribe.cgi
- DESCRIPTION

- @lists
- use lib

- COPYRIGHT

# NAME multiple_subscribe.cgi

# DESCRIPTION

Allow people to subscribe to more than one list at once

This is a complete (but bare bones) example on how to create a form with a bunch of checkboxes that will allow people to subscribe to more than one list at a time. Upload multiple_subscribe.cgi to your mojo directory and chmod 755 it.

## @lists

change what's in @lists to reflect what lists you want people to subscribe to, Example, if I wanted people to have a choice of subscribing to 'The Justin List' and 'The Dan List', I would put inside the array:

                    my @lists = ('The Justin List', 'The Dan List');

## use lib

look for the needed Mojo Libraries, we're assuming that you're putting in the same directory as the mojo.cgi script itself, if not you'll need change the below to reflect where the mojo directory is example: use lib '/usr/home/justin/public_html/cgi-bin/mojo';

# COPYRIGHT

Copyright (c) 1999 - 2002 Justin Simoni (justin@skazat.com) http://skazat.com All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.