| lists.darkspire.net | (List Help) | Adding subscribe forms/boxes to your site |
Adding subscribe forms/boxes to your siteContents
AbstractA few simple ways one can link to a list or offer an easy "subscribe box" on their site. Conventions used in this documentWhenever you see LISTNAME, replace it with the name of the desired list. List linksIf you want to link to a list, you can use something like the following. Most people will link to the list home, there are also other options should you need them.
Subscribe formsYou can easily add forms to your site to allow your visitors to subscribe to your lists, or lists that you enjoy. These are examples, you can use them verbatim if you don't mind a plain looking form. Feel free to write the markup for your site however you see fit. If none of this makes any sense to you, feel free to email me and I'll try to help you out if I can. I'll need the URI to your site and the type of form and lists you need included. Common elementsAll forms have the following elements. success:
"http://isp.net/~you/thanks.html" list: "LISTNAME" email:
"username@myisp.net" command: "subscribe, unsubscribe,
info, or intro" Box for one listThese forms can work with a single list. SimpleThis is a simple, click here to subscribe type form.
<form method="post" action="http://lists.darkspire.net/LISTNAME/ops/">
<!-- The line below is optional, it can point to a success page -->
<input type="hidden" name="success" value="http://www.mysite.org/thanks.html" />
<input type="hidden" name="command" value="subscribe" />
<!-- Change LISTNAME to the name of the list -->
<input type="hidden" name="list" value="LISTNAME" />
<input type="text" name="email" />
<input type="submit" name="submit" value="subscribe" />
</form>
With an unsubscribe optionThis one offers an unsubscribe option as well.
<form method="post" action="http://lists.darkspire.net/LISTNAME/ops/">
<!-- The line below is optional, it can point to a success page -->
<input type="hidden" name="success" value="http://www.mysite.org/thanks.html" />
<!-- Change LISTNAME to the name of the list -->
<input type="hidden" name="list" value="LISTNAME" />
<input type="text" name="email" />
<input type="submit" name="submit" value="go" /><br />
<select name="command">
<option value="subscribe">subscribe</option>
<option value="unsubscribe">unsubscribe</option>
</select>
</form>
Box for multiple listsSimpleChoose from one of several lists, type in an email address and submit. Nice and easy.
<form method="post" action="http://lists.darkspire.net/LISTNAME/ops/">
<!-- The line below is optional, it can point to a success page -->
<input type="hidden" name="success" value="http://www.mysite.org/thanks.html" />
<input type="hidden" name="command" value="subscribe" />
<input type="text" name="email" />
<input type="submit" name="submit" value="subscribe" /><br />
<!-- Change LISTNAME to the name of the list, one list per option element -->
<!-- You can use as many option lines as you need -->
<select name="list">
<option>LISTNAME1</option>
<option>LISTNAME2</option>
<option>LISTNAME3</option>
</select>
</form>
With an unsubscribe optionThis one offers an unsubscribe option as well.
<form method="post" action="http://lists.darkspire.net/LISTNAME/ops/">
<!-- The line below is optional, it can point to a success page -->
<input type="hidden" name="success" value="http://www.mysite.org/thanks.html" />
<input type="hidden" name="command" value="subscribe" />
<input type="text" name="email" />
<select name="command">
<option value="subscribe">subscribe</option>
<option value="unsubscribe">unsubscribe</option>
</select><br />
<!-- Change LISTNAME to the name of the list, one list per option element -->
<!-- You can use as many option lines as you need -->
<select name="list">
<option>LISTNAME1</option>
<option>LISTNAME2</option>
<option>LISTNAME3</option>
</select>
<input type="submit" name="submit" value="go" /><br />
</form>
FutureIf there's enough demand, I'll automate the generation of markup to allow for all sorts of styles and options. $Revision: 1.4 $ |
Help
· Help & Docs |
| back to top |
| Have questions, suggestions, or problems? Please let me know. |