Author Topic: multiple tickboxes for multiple lists  (Read 1926 times)

lenie

  • Posts: 4
    • View Profile
multiple tickboxes for multiple lists
« 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

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
multiple tickboxes for multiple lists
« Reply #1 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 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

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting