Web Sites and Ezine Design and Hosting

 

Web Site - Example Newsletter Subscription Scripting

Home Customer Support Web Sites Scripting Subscriber Form

Example Forms

Below are examples of simple and complex subscriber forms. We recommend the simple form. Use the complex form if you are comfortable with HTML forms and want to supply additional update and verify options.

Following the simple form, a Form Creation Wizard is provided to create your own subscriber form.

Simple Subscriber Form Example

The form below implements newsletter subscribe and cancel to a newsletter. Results are presented on one of two static pages: welcome or goodbye, which the web designer supplies.

You may omit the cancel option, but we don't recommend it. Subscribers may want to know that they may also easily cancel. You may omit the subscribers name, but we recommend collecting it because it may be helpful to you in the future.

To generate a custom version of this form for your newsletter, use the Form Creation Wizard below.

Simple Subscriber Form
Your Name:
Email Address:
Choose Either: Subscribe
Cancel

HTML for the Simple Subscriber Form:

Simple Subscription Form Creation Wizard

To generate a custom version of this form for your newsletter, provide appropriate settings and choose the "Show HTML" button. The HTML for your form will appear in the box below. Copy and paste this HTML to your page.
Simple Subscriber Form Creation Wizard
Newsletter Host :
Newsletter Identifier :
URL for Welcome Page :
URL for Goodbye Page :
Subscriber Form HTML:

Complex Subscription Form

In addition to the functions of the Simple Form, the Complex Form allows the site visitor to verify or update a subscription. It also presents results on a filled-in results page or pages.


Ezine Instructions
  • To subscribe, select desired newsletter, enter a new email address and name, then choose subscribe.
  • To cancel your subscription, select desired newsletters, enter an old email address, then choose cancel.
  • To update your subscription, select desired newsletters, enter both a new and old name and email addresses, choose update.
  • To verify whether you are subscribed, select desired newsletters, enter an email address, then choose verify.
Select Ezine:

Ezine One
Ezine Two

New Name:
New Email:
Old Name:
Old Email:
Select: Subscribe
Cancel
Update
Verify

Form Parameter Definitions:

  1. Form: Subscriber runs on the various hosts (lists, letters, news, zines). Make sure you specify the right host name for your newsletter in the action attribute of the form tag.

    <form action=http://news.webvalence.com/subscriber.fcgi method=post>
    (or)
    <form action=http://letters.webvalence.com/subscriber.fcgi method=post>
    (or)
    <form action=http://lists.webvalence.com/subscriber.fcgi method=post>
    (or)
    <form action=http://zines.webvalence.com/subscriber.fcgi method=post>

  2. All: Parameter names must be spelled the same as in the example, since they are used within the cgi scripting. Parameter names are case-independent. For example, use "toName" or "toname" but not "to-name".

  3. Lists: Specifies the newsletter for subscribe or cancel. Ezine names must be spelled exactly the same as they are setup. Names will never have white space or dashes in them.

    For example, use:
    <input type=hidden name=lists value="YourNewsletterName">

    The lists parameter may be repeated if you have more than one newsletter. We recommend checkboxes for this parameter if more than one newsletter may be chosen by the Web Visitor.

    For example, use:

    <input type=checkbox name=lists value="FirstNewsletterName" checked> and

    <input type=checkbox name=lists value="SecondNewsletterName" checked>.

  4. Action: contains either "subscribe" or "unsubscribe". We recommend radio buttons for this parameter.

    For example, use:

    <input type=radio name=action value=subscribe checked> Subscribe

    <input type=radio name=action value=unsubscribe> Cancel

  5. Submit: This button may be named anything you choose, as the submit parameter is ignored.

    For example, use:

    <input type=submit value="Send Request">

  6. Welcome/Goodbye: Place a fully qualified URL in the welcome and goodbye paramenters to specify a static web page to fetch upon successful subscribe or unsubscribe, respectively.

    For example, use:

    <input type=hidden name=welcome value="http://www.yourdomain.com/welcome.html">

  7. WelcomePage/GoodbyePage/ThanksPage/ErrorPage: Place a fully qualified URL in the welcomePage, goodbyePage, thanksPage, and errorPage to specify a dynamic page to be fetched on completion of a subscribe, cancel, update, or error, respectively. (Dynamic pages include fill-in information. See the example response page.) Please don't use our example response page, because it's an ugly example. Make your own!

Your newsletter must be initialized by WebValence before the subscriber forms will work. If you have trouble, or have questions, send us a note at support@webvalence.com.

 

 
 

(503) 335-3442 · sales@webvalence.com · Copyright © 1997—2008 · All Rights Reserved