Author Topic: Multi List Subscribe Page  (Read 1368 times)

ihsreal

  • Posts: 19
    • View Profile
    • http://www.IHSRealty.com
Multi List Subscribe Page
« on: February 13, 2007, 06:41:37 am »
I'd like to create a page where users can subscribe or unsubscribe from multiple lists and indicate their HTML/plain text preference. Can I use your existing multi-list subscribe example in this manner using checkboxes instead of hidden text?

something like:

<form method=post action=http://example.com/mail/signup.php>
<label for=lists[]>Check to Subscribe</label>
<input type=checkbox name=lists[] value=1>List 1<br />
<input type=checkbox name=lists[] value=2>List 2<br />
<input type=checkbox name=lists[] value=3>List 3<br />
<input type=hidden name=<?php echo $_SESSION['email]'; ?>><br />
<label for=htmail>Mail Type Preference</label>
<input type=checkbox name=htmail value=1>HTML
<input type=checkbox name=htmail  value=0>Plain Text
<select name=submode>
<option value=sub>Subscribe</option>
<option value=unsub>Remove</option>
</select>
<input type=submit name=sup value="Go!">
</form>

It would be necessary to have the boxes highlighted on load so that the user would know their current status.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Multi List Subscribe Page
« Reply #1 on: February 15, 2007, 03:23:14 am »
Yes, checkboxes, radio buttons or hidden text can be used to set the list variables.  You should be able to do as you wish for both subscription and removal.

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