One type of form ezine publishers will find useful allows a site visitor to subscribe to multiple ezines with one form.
This article is a how-to for multiple ezine subscription processing. It is a modified version of the "Subscription Form Processing with Master Form V4" article (listed with others in the "Related Articles" box on the right). NOTE: This form provides the means for subscribing, only.
Site visitors provide their email address (and name and other information, depending on the form you use). And they check the ezines they want to subscribe to. Then, Master Form V4 takes these steps:
Updates a database with the submitted information.
Sends a subscription email to the list software/service of each ezine the site visitor checked. (The list software/services then handle the subscriptions.)
Sends an email to you, the webmaster.
Presents a "thank you" page to the form user.
Forms, emails, databases, and "thank you" pages can all be formatted the way you want and contain the information you want.
I'll show you how to do it, step by step. If anything is unclear, or if you wish to modify the examples provided here, please consult the Master Form V4 Manual.
First, make the form. Here is an example form you can use:
Verify the URLs in the FORM tag and the hidden fields are correct. Adjust as necessary.
Here is how the above form would print on your web page.
The Hidden Form Fields
Below is a short explanation of each hidden field. If the hidden field refers to a template, an example is provided.
Hidden field name="requiredfields"
This hidden field's value contains a comma-separated list of the field names that are required to contain information before the form can be successfully submitted.
Hidden field name="emailfields"
This hidden field's value contains a comma-separated list of the field names that must contain a correctly formatted email address if they contain any information at all.
Hidden field name="dbfile"
Here is where the file name and location of the database is specified. Information submitted with the form is appended to the file, the file created if it doesn't already exist.
Hidden field name="filetemplate"
The template specified in this hidden field is used to prepare the data record prior to appending to the database file. Here is an example database record template:
The above is a template for a comma-separated values (CSV) file, recording.
The first line of the template tells Master Form V4 to print the first record with field names whenever it creates a new database file.
The next line is the template for the data record. It provides for fields for
the server date,
the server time,
the email address provided on the form,
the name provided on the form,
the IP address of the form user, and
the names of the email template files that were used (a separate template is used for each ezine).
The last field records the file names of the webmaster email template and the email template of each ezine checked when the form was submitted. The template file names are separated with %0A ("0A" is the hex number for a line feed character, and the "%" preceding the hex number tells some programs to convert the hex number). A different separator may be specified. See the Master Form V4 Manual for more information.
Hidden field name="emailtemplate"
This email template is for you, the webmaster. (The email templates for the ezines are specified as the values of the ezine checkbox fields.)
Here is an example email template for the webmaster:
Hidden field name="flowto"
If you do not wish to have the "thank you" page personalized, use hidden field name="redirect" instead of name="flowto"
When hidden field name="flowto" is used, Master Form V4 retrieves the template web page at the URL, personalizes/customizes it, then displays the modified web page in the user's browser.
Here is an example "thank you" web page template:
The Visible Form Fields
The visible form fields are the checkboxes, the text fields, and the submit button.
The field names of the ezine checkboxes are all name="emailtemplate"
You'll note that is the same field name as the hidden field that specifies which template to use when sending the webmaster email.
When an ezine checkbox is checked, the checkbox is added to the name="emailtemplate" values list. The value of the checkbox is the location of the email template to use when subscribing to that particular ezine.
(When the form is submitted, Master Form V4 constructs and sends an email for each template in the name="emailtemplate" values list.)
Here is an example email template that might be sent to the ezine software/service when the form user checks a checkbox. The example includes a Bcc: line for the webmaster to receive a copy.
Implementation
Put the web page form on your server, and the templates in the locations specified in the form's hidden fields
Then test it. Verify that all emails are sent and the database is updated.
When it works the way you want it to, and you're ready to do so, put the form on a publicly accessible web page and link to it.