Author Topic: Some custom HTML and signup form questions  (Read 2484 times)

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Some custom HTML and signup form questions
« on: June 19, 2006, 07:19:59 pm »
Your first question:
Quote
> I have designed a newsletter in dreamweaver with differnt pages such as the
> initial newsletter, an unsubscribe and unsubscribe confirm page etc. How
> do I go about sending it via listmail? Do i paste the codes into the separate
> sections in listmail (EG in the custom code for unsubscribe etc), or do I make
> them link independantly in dreamweaver then paste in the whole site into the
> message compostion custom html section? Sorry if this sounds stupid, I am new
> to web design! Could you include the codes I need for this please!

It sounds like you're trying to enter Custom HTML.  You should not modify any message codes for this.  Browse to the Custom HTML page you would like to use, click in the textbox and press Ctrl-A to select all.  Hit Delete to clear out the old data, and then paste your new page.  Note that on the Unsubscribe Confirm page you MUST have a message code of the type "Remove Confirm" - a special code used only for this Custom HTML page to output the confirmation button.

Your second question:
Quote
> Could you also answer another question for me? I'm trying to make a page
> where users can unsubscribe, and understand I need to use the 'remove link'
> code, but cant work out where I need to put it in the HTML text. Currently
> the code i have is:
>
> <form id="form1" name="form1" method="post"
> action="http://www.example.com/listmail/signup.php">
>       email:<br />
>           <input type="text" name="textfield" id="textfield" size="60" sup
> value="email address"/>
>           <input type="submit" name="Submit" value="Submit" />
>       </p>
>       </form>

First you're missing the "list" variable, which is required. Second, that "textfield" field needs to be named "email" and appears to be incorrectly formatted. Third, you do not need to use the 'remove link' message code when creating an HTML unsubscription form.  The var you need to set is "submode" to the value "unsub".  Here's a generic version from the ListMail 'Signup Code' generator:
Code: [Select]
<form method=post action=http://www.example.com/mail/signup.php>
<input type=hidden name=list value=1>
First Name: <input type=text name=fname size=10><br>
Email: <input type=text name=email><br>
<select name=submode>
<option value=sub>Subscribe</option>
<option value=unsub>Remove</option>
</select>
<input type=submit name=sup value="Go!">
</form>


To make the form remove ONLY, take out the select box and set "submode" to "unsub" in a hidden field:
Code: [Select]
<form method=post action=http://www.example.com/mail/signup.php>
<input type=hidden name=list value=1>
First Name: <input type=text name=fname size=10><br>
Email: <input type=text name=email><br>
<input type=hidden name=submode value=unsub>
<input type=submit name=sup value="Go!">
</form>


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