ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: lenie on July 26, 2008, 12:38:44 pm

Title: multiple tickboxes for multiple lists
Post by: lenie on July 26, 2008, 12:38:44 pm
i have 41 different lists, 41 different target markets

how do i configure it so I can create a tick box system or something similar so people can select which list they subscribe to when they click free information on my home page?

simon
Title: multiple tickboxes for multiple lists
Post by: DW on July 28, 2008, 09:35:25 pm
If you want the user to be able to choose one list at a time, a simple HTML "SELECT" box could allow the user to set the "list" variable:
Code: [Select]
<select name=list>
<option value=1>List 1
<option value=2>List 2
</select>

For multiple list subscription, you can set the "lists" variable to contain an array of values, ie:
Code: [Select]
<input type=hidden name=lists[] value=1><!-- global list -->
<input type=checkbox name=lists[] value=2> Subscribe to list 2<br>
<input type=checkbox name=lists[] value=3> Subscribe to list 3<br>

You may also be able to use a multi-SELECT box as shown here (http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html) but I am not sure if when only one option is selected the lists variable becomes an array or a simple string, which could cause a processing problem if not rectified with JavaScript onSubmit() ;)

More information on signup form variables can be viewed in the help here (http://listmailpro.com/help/signup_forms.html)

Regards