Variables of Mailling list?

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

west
Posts: 13
Joined: Fri Mar 23, 2007 4:54 pm

Variables of Mailling list?

Post by west »

Hi,

Is there any variables representing the mailing list subscription? Something like [agnSUBSCRIBE LISTID=xx] ?

I want to have a subscription modification page for subscriber to change their subscription. I can show their profile data but i don't know how to show their current subscription. Anyone have idea?

Thanks!
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

There is a solution via a script action. We will post the code for such an action within the next few days.
OpenEMM Maintainer
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

example

Post by maschoff »

Example for script action to bind e-mail address to two mailinglists

A. Create action consisting of the following two steps:

1. Load userdata (to get customerID)

2. Script action (replace "1" and "2" with the desired mailinglistIDs):

Code: Select all

## mailinglistID "1"
$BindingEntry.setMailinglistID(1)

#if($customerID != 0)
  $ScriptHelper.println("Cust found")
  $BindingEntry.setCustomerID($customerID)
  #if($BindingEntry.getUserBindingFromDB(1) == true)
     #if($BindingEntry.getUserStatus() == 1)
       #set($result="success")
     #elseif($BindingEntry.getUserStatus() == 2)
         #set($result="bounce")
     #elseif($BindingEntry.getUserStatus() == 3)
         #set($result="admin_optout")
     #elseif($BindingEntry.getUserStatus() == 4)
         #set($result="optout")
     #elseif($BindingEntry.getUserStatus() == 5)
         #set($result="do_wait")
     #elseif ($BindingEntry.getUserStatus() == 6)
         #set($result="blacklisted")
     #else
         #set($result="suspend")
     #end
  #else
    #set($result="nobinding")
  #end   
#else
  #set($result="nocust")
#end

##mailinglist ID "2"
$BindingEntry.setMailinglistID(2)

#if($customerID != 0)
  $ScriptHelper.println("Cust found")
  $BindingEntry.setCustomerID($customerID)
  #if($BindingEntry.getUserBindingFromDB(2) == true)
     #if($BindingEntry.getUserStatus() == 1)
       #set($result1="success")
     #elseif($BindingEntry.getUserStatus() == 2)
         #set($result1="bounce")
     #elseif($BindingEntry.getUserStatus() == 3)
         #set($result1="admin_optout")
     #elseif($BindingEntry.getUserStatus() == 4)
         #set($result1="optout")
     #elseif($BindingEntry.getUserStatus() == 5)
         #set($result1="do_wait")
     #elseif ($BindingEntry.getUserStatus() == 6)
         #set($result1="blacklisted")
     #else
         #set($result1="suspend")
     #end
  #else
    #set($result1="nobinding")
  #end
#else
  #set($result1="nocust")
#end  

## if this script ends here, set success code
#set($scriptResult = "1")
B. Create form, which uses the script action above and displays parameter $result (status of binding to first mailinglist) and $result1 (status of binding to second mailinglist).
OpenEMM Maintainer
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

documentation

Post by maschoff »

The documentation of the script action feature is now available:

http://www.openemm.org/fileadmin/docs/S ... tation.pdf

Have fun!
OpenEMM Maintainer
snau
Posts: 1
Joined: Tue Jan 27, 2009 11:49 am

Post by snau »

Hi,

I have some problems getting this script action to work. Probably I am doing something wrong. I would like to let the subscribers change their profile and their subcription to 4 mailinglists. Everything is working fine. Only the mailinglists are giving me some troubles. I can not figure out how to update their status.

Could you please have a look at the code? Here is the script action to read out the subscription-data:

Code: Select all

## mailinglistID "2"
$BindingEntry.setMailinglistID(2)

#if($customerID != 0)
  $ScriptHelper.println("Cust found")
  $BindingEntry.setCustomerID($customerID)
  #if($BindingEntry.getUserBindingFromDB(2) == true)
     #if($BindingEntry.getUserStatus() == 1)
       #set($result="success")
     #elseif($BindingEntry.getUserStatus() == 2)
         #set($result="bounce")
     #elseif($BindingEntry.getUserStatus() == 3)
         #set($result="admin_optout")
     #elseif($BindingEntry.getUserStatus() == 4)
         #set($result="optout")
     #elseif($BindingEntry.getUserStatus() == 5)
         #set($result="do_wait")
     #elseif ($BindingEntry.getUserStatus() == 6)
         #set($result="blacklisted")
     #else
         #set($result="suspend")
     #end
  #else
    #set($result="nobinding")
  #end   
#else
  #set($result="nocust")
#end

##mailinglist ID "3"
$BindingEntry.setMailinglistID(3)

#if($customerID != 0)
  $ScriptHelper.println("Cust found")
  $BindingEntry.setCustomerID($customerID)
  #if($BindingEntry.getUserBindingFromDB(3) == true)
     #if($BindingEntry.getUserStatus() == 1)
       #set($result1="success")
     #elseif($BindingEntry.getUserStatus() == 2)
         #set($result1="bounce")
     #elseif($BindingEntry.getUserStatus() == 3)
         #set($result1="admin_optout")
     #elseif($BindingEntry.getUserStatus() == 4)
         #set($result1="optout")
     #elseif($BindingEntry.getUserStatus() == 5)
         #set($result1="do_wait")
     #elseif ($BindingEntry.getUserStatus() == 6)
         #set($result1="blacklisted")
     #else
         #set($result1="suspend")
     #end
  #else
    #set($result1="nobinding")
  #end
#else
  #set($result1="nocust")
#end 

##mailinglist ID "4"
$BindingEntry.setMailinglistID(4)

#if($customerID != 0)
  $ScriptHelper.println("Cust found")
  $BindingEntry.setCustomerID($customerID)
  #if($BindingEntry.getUserBindingFromDB(4) == true)
     #if($BindingEntry.getUserStatus() == 1)
       #set($result1="success")
     #elseif($BindingEntry.getUserStatus() == 2)
         #set($result1="bounce")
     #elseif($BindingEntry.getUserStatus() == 3)
         #set($result1="admin_optout")
     #elseif($BindingEntry.getUserStatus() == 4)
         #set($result1="optout")
     #elseif($BindingEntry.getUserStatus() == 5)
         #set($result1="do_wait")
     #elseif ($BindingEntry.getUserStatus() == 6)
         #set($result1="blacklisted")
     #else
         #set($result1="suspend")
     #end
  #else
    #set($result1="nobinding")
  #end
#else
  #set($result1="nocust")
#end

##mailinglist ID "5"
$BindingEntry.setMailinglistID(5)

#if($customerID != 0)
  $ScriptHelper.println("Cust found")
  $BindingEntry.setCustomerID($customerID)
  #if($BindingEntry.getUserBindingFromDB(5) == true)
     #if($BindingEntry.getUserStatus() == 1)
       #set($result1="success")
     #elseif($BindingEntry.getUserStatus() == 2)
         #set($result1="bounce")
     #elseif($BindingEntry.getUserStatus() == 3)
         #set($result1="admin_optout")
     #elseif($BindingEntry.getUserStatus() == 4)
         #set($result1="optout")
     #elseif($BindingEntry.getUserStatus() == 5)
         #set($result1="do_wait")
     #elseif ($BindingEntry.getUserStatus() == 6)
         #set($result1="blacklisted")
     #else
         #set($result1="suspend")
     #end
  #else
    #set($result1="nobinding")
  #end
#else
  #set($result1="nocust")
#end

## if this script ends here, set success code
#set($scriptResult = "1") 
And here the form to call up the customer-data:

Code: Select all

<table border=0>
<tr><td width="120">Anrede:</td>
<td><select name="GENDER">
<option value="2" #if($!customerData.GENDER == "2") selected #end>unbekannt</option>
<option value="1" #if($!customerData.GENDER == "1") selected #end>Frau</option>
<option value="0" #if($!customerData.GENDER == "0") selected #end>Herr</option>
</select></td></tr>
<tr><td>Vorname:</td>
<td><input type="text" name="FIRSTNAME" style="width: 200px;" value="$!customerData.FIRSTNAME"></td></tr>
<tr><td>Nachname:</td>
<td><input type="text" name="LASTNAME" style="width: 200px;" value="$!customerData.LASTNAME"></td></tr>
<tr><td>E-Mail-Adresse:</td>
<td><input type="text" name="EMAIL" style="width: 200px;" value="$!customerData.EMAIL"></td></tr>
<tr><td valign="top">Newsletterformat:</td>
<td><input type="radio" name="MAILTYPE" value="1" #if($!customerData.MAILTYPE == "1") checked #end>HTML (mit Bildern)<br>
<input type="radio" name="MAILTYPE" value="0" #if($!customerData.MAILTYPE == "0") checked #end>Text (Plaintext)</td></tr>
<tr>
<tr><td valign="top">Zustellung:</td>
<td><input type="radio" name="zustellung" value="0" #if($!customerData.zustellung == "0") checked #end>regelmäßig<br>
<input type="radio" name="zustellung" value="1" #if($!customerData.zustellung == "1") checked #end>gelegentlich</td></tr>
<tr>
<td valign="top">Mailingliste:</td>
<td>

<input type="checkbox" name="agnSUBSCRIBE"value="1">Mailingliste-1<br>
<input type="hidden" name="agnMAILINGLIST" value="2" #if($!customerData.agnMAILINGLIST == "2") checked #end>
<input type="checkbox" name="agnSUBSCRIBE2"value="1">Mailingliste-2<br>
<input type="hidden" name="agnMAILINGLIST2" value="3" #if($!customerData.agnMAILINGLIST2 == "3") checked #end>
<input type="checkbox" name="agnSUBSCRIBE3"value="1">Mailingliste-3<br>
<input type="hidden" name="agnMAILINGLIST3" value="4" #if($!customerData.agnMAILINGLIST3 == "4") checked #end>
<input type="checkbox" name="agnSUBSCRIBE4"value="1">Mailingliste-4<br>
<input type="hidden" name="agnMAILINGLIST4" value="5" #if($!customerData.agnMAILINGLIST4 == "5") checked #end>

<tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td align="right"><input type="submit" value="Absenden"></td></tr>
</table>         
</form>
With that code it is possible to subscribe but not to unsubscribe. I tried to find a solution in the manual and forum, but to no avail. At the moment I am stuck.

Thanks a lot for any kind of help!
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

We will check your script and post the solution, but this may take some time.
OpenEMM Maintainer
Hofmann M.
Posts: 22
Joined: Thu Aug 03, 2006 3:18 pm
Location: Ruhpolding, BY, Germany
Contact:

correct example for profile site

Post by Hofmann M. »

Hello snau,

I read your post and tested your scripts. I did some changes at the script and the html-code. Please take a look.

Link in E-Mail:
http://yourdomain.com/form.do?agnCI=1&a ... D=##AGNUID##

Forms and Actions in the openemm:
- action "load_profile"
- form "profile"

Structure and content of the action "load_profile":
step 1: load recipient-data
step 2: script action
script:

Code: Select all

## mailinglistID 2
$BindingEntry.setMailinglistID(2)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML1 = "1")
  #else
     #set($ML1 = "0")
  #end
#end

## mailinglistID 3
$BindingEntry.setMailinglistID(3)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML2 = "1")
  #else
     #set($ML2 = "0")
  #end
#end

## mailinglistID 4
$BindingEntry.setMailinglistID(4)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML3 = "1")
  #else
     #set($ML3 = "0")
  #end
#end

## mailinglistID 5
$BindingEntry.setMailinglistID(5)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML4 = "1")
  #else
     #set($ML4 = "0")
  #end
#end

#set($scriptResult = "1")
Structure of the form "profile"

- action: "load_profile"
- success-form:

Code: Select all

<table border=0>
<tr><td width="120">Anrede:</td>
<td><select name="GENDER">
<option value="2" #if($!customerData.GENDER == "2") selected #end>unbekannt</option>
<option value="1" #if($!customerData.GENDER == "1") selected #end>Frau</option>
<option value="0" #if($!customerData.GENDER == "0") selected #end>Herr</option>
</select></td></tr>
<tr><td>Vorname:</td>
<td><input type="text" name="FIRSTNAME" style="width: 200px;" value="$!customerData.FIRSTNAME"></td></tr>
<tr><td>Nachname:</td>
<td><input type="text" name="LASTNAME" style="width: 200px;" value="$!customerData.LASTNAME"></td></tr>
<tr><td>E-Mail-Adresse:</td>
<td><input type="text" name="EMAIL" style="width: 200px;" value="$!customerData.EMAIL"></td></tr>
<tr><td valign="top">Newsletterformat:</td>
<td><input type="radio" name="MAILTYPE" value="1" #if($!customerData.MAILTYPE == "1") checked #end>HTML (mit Bildern)<br>
<input type="radio" name="MAILTYPE" value="0" #if($!customerData.MAILTYPE == "0") checked #end>Text (Plaintext)</td></tr>
<tr>
<tr><td valign="top">Zustellung:</td>
<td><input type="radio" name="zustellung" value="0" #if($!customerData.zustellung == "0") checked #end>regelmäßig<br>
<input type="radio" name="zustellung" value="1" #if($!customerData.zustellung == "1") checked #end>gelegentlich</td></tr>
<tr>
<td valign="top">Mailingliste:</td>
<td>

<input type="hidden" name="agnSUBSCRIBE" value="1">
<input type="checkbox" name="agnMAILINGLIST" value="2" #if($ML1 == "1") checked #end>Mailingliste-1<br>
<input type="hidden" name="agnSUBSCRIBE1"value="1">
<input type="checkbox" name="agnMAILINGLIST1" value="3" #if($ML2 == "1") checked #end>Mailingliste-2<br>
<input type="hidden" name="agnSUBSCRIBE2"value="1">
<input type="checkbox" name="agnMAILINGLIST2" value="4" #if($ML3 == "1") checked #end>Mailingliste-3<br>
<input type="hidden" name="agnSUBSCRIBE3"value="1">
<input type="checkbox" name="agnMAILINGLIST3" value="4" #if($ML4 == "1") checked #end>Mailingliste-4<br>

<tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td align="right"><input type="submit" value="Absenden"></td></tr>
</table>
</form>
- error-form:

Code: Select all

ERROR
- action: No action


I tried it and the correct "Mailingliste" was checked.
To save the profile settings just use a subscribe action in the profile confirm form.

Greetings
Markus
misterhonk
Posts: 1
Joined: Mon Sep 06, 2010 2:51 pm

Post by misterhonk »

Hi,

thanks for this usefull thread, i recently setup a openEMM Newsletter with multiple Mailinglists including the subscribe and unsubscribe function which i found in this forum. Now my last hurdle is changing profile, which actually won't work.

I used a form similar to the one above and the "user_subscribe" Action with the "Subscribe" Funktion activated. Adding a Mailinglist to ones profile seem to work, but unsubscribe from a certain mailinglist doesn't.

Here is my Code for "user_get_data"

Code: Select all

## mailinglistID 1
$BindingEntry.setMailinglistID(1)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML1 = "1")
  #else
     #set($ML1 = "0")
  #end
#end


## mailinglistID 2
$BindingEntry.setMailinglistID(2)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML2 = "1")
  #else
     #set($ML2 = "0")
  #end
#end

## mailinglistID 3
$BindingEntry.setMailinglistID(3)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML3 = "1")
  #else
     #set($ML3 = "0")
  #end
#end

## mailinglistID 4
$BindingEntry.setMailinglistID(4)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML4 = "1")
  #else
     #set($ML4 = "0")
  #end
#end

## mailinglistID 5
$BindingEntry.setMailinglistID(5)
$BindingEntry.setCustomerID($customerID)
#if($BindingEntry.getUserBindingFromDB(1) == true)
  #if($BindingEntry.getUserStatus() == 1)
     #set($ML5 = "1")
  #else
     #set($ML5 = "0")
  #end
#end

#set($scriptResult = "1") 
And this is my form "de_profil"

Code: Select all

<table width="480" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="f9f9f9" style="border:1px solid #e9e9e9;">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>
          <form action="form.do">
          <input type="hidden" name="agnCI" value="1">
          <input type="hidden" name="agnFN" value="de_profil_confirm">
          <input type="hidden" name="agnUID" value="$!agnUID">
      
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            
            <tr>
              <td style="padding: 10px;"><h1>NEWSLETTER DATEN &Auml;NDERN</h1>
                  <p>Sie erhalten unseren Newsletter und m&ouml;chten Ihre Daten &auml;ndern:</p>
                  <table border="0" width="100%">
                  <tr><td width="120">Anrede:</td>
                      <td><select name="GENDER">
                            <option value="2" #if($!customerData.GENDER == "2") selected #end>unbekannt</option>
                            <option value="1" #if($!customerData.GENDER == "1") selected #end>Frau</option>
                            <option value="0" #if($!customerData.GENDER == "0") selected #end>Herr</option>
                          </select></td></tr>
                  <tr><td>Vorname:</td>
                      <td><input type="text" name="FIRSTNAME" style="width: 250px;" value="$!customerData.FIRSTNAME"></td></tr>
                  <tr><td>Nachname:</td>
                      <td><input type="text" name="LASTNAME" style="width: 250px;" value="$!customerData.LASTNAME"></td></tr>
                  <tr>
                        <td>Unternehmen/Organisation<sup>*</sup></td>
                        <td><input type="text" value="$!customerData.FIRMA" name="FIRMA" style="width:250px;" /></td>
                      </tr>
                  <tr><td>E-Mail-Adresse:</td>
                      <td><input type="text" name="EMAIL" style="width: 250px;" value="$!customerData.EMAIL"></td></tr>
                  
                  <tr>
                        <td colspan="2"><hr  /></td>
                      </tr>
                      <tr>
                        <td>Branche<sup>*</sup></td>
                        <td><select name="BRANCHE" class="optionrequired">
                            
                            <option value="Gewerbe-Industrie" #if($!customerData.BRANCHE == "Gewerbe-Industrie") selected #end>Gewerbe und Industrie</option>
                            <option value="Dienstleistung-Finanz" #if($!customerData.BRANCHE == "Dienstleistung-Finanz") selected #end>Dienstleistung und Finanz</option>
                            <option value="Oeffentlicher-Dienst" #if($!customerData.BRANCHE == "Oeffentlicher-Dienst") selected #end>&Ouml;ffentlicher Dienst</option>
                            <option value="Gesundheitswesen" #if($!customerData.BRANCHE == "Gesundheitswesen") selected #end>Gesundheitswesen</option>
                            <option value="Universitaeten-Schulen" #if($!customerData.BRANCHE == "Universitaeten-Schulen") selected #end>Universit&auml;ten / Schulen</option>
                            <option value="IT-Systemhaus" #if($!customerData.BRANCHE == "IT-Systemhaus") selected #end>IT-Systemhaus</option>
                            <option value="IT-Consultant" #if($!customerData.BRANCHE == "IT-Consultant") selected #end>IT-Consultant</option>
                            <option value="Presse" #if($!customerData.BRANCHE == "Presse") selected #end>Presse</option>
                          </select></td>
                      </tr>    
                      <tr>
                        <td colspan="2"><hr  /></td>
                      </tr>
                      <tr>
                        <td colspan="2"><h3>Themengebiete<sup>*</sup> <span style="font-size: 11px; display: inline;">(Mehrfachauswahl m&ouml;glich)</span></h3></td>
                      </tr>
                      <tr>
                        <td width="120">List 1</td>
                        <td>
                        <input type="hidden" name="agnSUBSCRIBE" value="1">
						<input type="checkbox" name="agnMAILINGLIST" value="1" #if($ML1 == "1") checked #end></td>
                      </tr>
                      <tr>
                        <td>List 3</td>
                        <td>
                        <input type="hidden" name="agnSUBSCRIBE3" value="1">
						<input type="checkbox" name="agnMAILINGLIST3" value="3" #if($ML3 == "1") checked #end>
                        </td>
                      </tr>
                      
                        <td>List 4</td>
                        <td>
                        <input type="hidden" name="agnSUBSCRIBE4" value="1">
						<input type="checkbox" name="agnMAILINGLIST4" value="4" #if($ML4 == "1") checked #end>
                        </td>
                      </tr><tr>
                        <td>List 5</td>
                        <td>
                        <input type="hidden" name="agnSUBSCRIBE5" value="1">
						<input type="checkbox" name="agnMAILINGLIST5" value="5" #if($ML5 == "1") checked #end>
                        </td>
                      </tr>
                
                      <tr>
                        <td colspan="2"><hr  /></td>
                      </tr>
                      <tr>
                        <td colspan="2">Kommentare / Anregungen:</td>
                        </tr>
                        <tr>
                        <td colspan="2"><textarea value="" name="KOMMENTARE" rows="8" style="width:99%;"></textarea></td>
                      </tr>
                      <tr>
                        <td colspan="2"><hr  /></td>
                      </tr>
                      
                  <tr><td valign="top">Newsletterformat:</td>
                      <td><input type="radio" name="MAILTYPE" value="1" #if($!customerData.MAILTYPE == "1") checked #end>HTML (mit Bildern)<br>
                          <input type="radio" name="MAILTYPE" value="0" #if($!customerData.MAILTYPE == "0") checked #end>Text (Plaintext)</td></tr>
                  <tr>
                        <td colspan="2"><hr  /></td>
                      </tr>
                  <tr><td><input type="submit" value="Speichern" style="background: #3a7a1f; font-weight: 700; color: #fff; border:0; padding: 3px 5px;"></td>
                      <td>&nbsp;</td></tr>
                  </table>         
                  </td>                                 
            </tr>
            <tr>
              <td colspan="3">&nbsp;</td>
            </tr>            
          </table>
          </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
Do I need to setup a special action for checking input fields about subscribe/unsubscribe at the change profile site? May be someone could help me with the action, cause my coding skills are pretty weak :/
sr-ska
Posts: 22
Joined: Tue Mar 19, 2013 6:56 pm

Re: Variables of Mailling list?

Post by sr-ska »

Is there any method to check input fields and unsubscribe?
sr-ska
Posts: 22
Joined: Tue Mar 19, 2013 6:56 pm

Re: Variables of Mailling list?

Post by sr-ska »

Solved:

Code: Select all

<table width="266" border="0" cellspacing="0" cellpadding="0" style="line-height:20px;">
  <tr>
    <td width="38">Yes</td>
    <td width="44">No </td>
    <td width="184">&nbsp;</td>
  </tr>
  <tr>
    <td><input type="radio" name="agnSUBSCRIBE" value="1" #if($ML1 == "1") checked #end /></td>
    <td><input type="radio" name="agnSUBSCRIBE" value="0" #if($ML1 == "0") checked #end />
      <input type="hidden" name="agnMAILINGLIST" value="1" /></td>
    <td><strong>Newsleter 1</strong></td>
  </tr>
  <tr>
    <td><input type="radio" name="agnSUBSCRIBE2" value="1" #if($ML2 == "1") checked #end /></td>
    <td><input type="radio" name="agnSUBSCRIBE2" value="0" #if($ML2 == "0") checked #end />
      <input type="hidden" name="agnMAILINGLIST2" value="2" /></td>
    <td><strong>Newsletter 2</strong></td>
  </tr>
</table>
Post Reply