ListMailPRO Email Marketing Software Forums
ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: ihsreal 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.
-
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