flux,
Great module!
I have suggestion for the modification of the form template in the snippet so that it is valid XHTML as the template in the snippet will not validate.
I have modifed the snippets.txt file as below the complete file is attached:
<?php
$list .= '
<h2>'.$lang_mailinglist.'</h2>
<form id="enSubscribe" action="" onsubmit="return validate_form(this);" method="post">
<div><label for="enFirstname">'.$lang_firstname.'</label>
<input type="text" name="firstname" id="enFirstname" size="50" maxlength="50" /></div>
<div><label for="enLastname">'.$lang_lastname.'</label>
<input type="text" name="lastname" id="enLastname" size="50" maxlength="50" /></div>
<div>
<label for="enEmail">'.$lang_email.'</label>
<input type="text" name="email" id="enEmail" size="50" maxlength="50" />
<input type="hidden" name="op" value="set" /></div>
<div><input type="radio" name="option" value="subscribe" checked="checked" />'.$lang_subscribe.'
<input type="radio" name="option" value="unsubscribe" />'.$lang_unsubscribe.'</div>
<div><input type="submit" value="'.$lang_submit.'" /></div>
</form>';
echo $list;
}
?>
In order to make this work as you have designed (with breaks and such) one could change their main css file to do the following:
#enSubscribe label{display:block;}
A couple of thoughts as well. I would like to be able to put the nl subscribe form into a div in a sidebar so splitting subscription form and the management form into to forms with a parameter to distinguish between the two would be ideal.
As an example it would be nice if I could just have someone put in their name and email address and then be redirected to the thank you/management page. This is a very common method vs having to send people to a subscribe page via a link in wayfinder.
I will play with the snippet to see if it can be done. \
Cheers,
Jay