Majordomo Subscription Form
Configure our script that allows visitors to subscribe or un subscribe to your majordomo mailing lists.
The first step in using this form-to-email script is to set the first line of the form to:<form action="http://www.datarealm.com/cgi-bin/major_subscribe.cgi" method="post">
Action - The "action" value gives the browser the location of the script that will process the information from this form.
Method - The "method" value tells the browser how to pass the information to the script. If the value is set to "post" - the browser will pass the information silently in the background. If the value is set to "get" - the browser will pass the information in the URL. For various reasons it is advised that "post" be used unless "get" is needed for a specific process.
The form settings should be placed directly below the form action line. They allow you to specify where the email is sent, and where the user is directed after they submit the form. The four form settings are:
This value lets the script know which mailing list it is supposed to use.<input type="hidden" name="listname" value="name_of_you_list">
Replace "name_of_your_list" with the name of your mailing list. Capitalization counts.
This line specifies the email address that will be subscribed or unsubscribed from your mailing list.<input type="text" NAME="email">
If you want to give users the choice of subscribing or unsubscribing, you can make this a pull-down menu. Or if you prefer to use the form for just subscribing (or for just unsubscribing) you can use set it as a hidden field. User Defined:<select name="action"> <option value="subscribe">subscribe</option> <option value="unsubscribe">unsubscribe</option> </select>
Fixed Subscribe -<input type="hidden" name="action" value="subscribe">
Fixed Unsubscribe -<input type="hidden" name="action" value="unsubscribe">
To redirect visitors to a specific page after they complete the form, use the line below.<input type="hidden" name="redirect" value="http://www.example.com/thankyou.html">
- Put a link to this form at the bottom of every mailing list message so that your readers can unsubscribe it they want to
- You may want to use two forms: One on your home page that does subscriptions only, and one elsewhere (linked via the mailing list message) that does removals.
Below is the HTML for a form that subscribes, or unsubscribes, a visitor to the list and redirects them to http://www.example.com:Join our Mailing List: <form action="http://www.datarealm.com/cgi-bin/major_subscribe.cgi" method="POST"> <input type="hidden" name="listname" value="your_list_name_here"> <input type="hidden" name="redirect" value="http://www.example.com"> <input type="text" name="email"><br> <select name="action"> <option value="subscribe">subscribe</option> <option value="unsubscribe">unsubscribe</option> </select> <input type="submit"> </form>
If you have problems with this form, please make sure to check the form settings for any possible errors. A few common errors, with straightforward fixes, are detailed below.
Nothing happens when the submit button is pressed - Check the form action. Typically when the form doesn't work at all it points to a problem with the form action line. Also check your page for any other form action lines that might be confusing the browser (eg: <form>).
404 File Not Found - There are two possible culprits with this error:
1) Incorrect form action. The browser can't find the script to process the results.
2) Incorrect redirect value. The browser can't find the page to redirect the visitor to.
Was this answer helpful?
Instructions for setting up and configuring a basic page visit counter. Installing the...
This script is from Matt's Script Archive, and is one of the most widely used form-to-email...
A few notes about installing WordPress : - WordPress is a third party software. We do not...
How to install and configure the Perlfect Search script and integrate it into your website. A...
Adding reCAPTCHA to your Datarealm Forms In order to limit the amount of spam submitted through...