Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Posts
    200

    mailing list subscribe

    hi there, i would like to ask how do i add the thing to my blogshop for customers to input their email address and click on the button to auto subscribe to the mailing list...any idea?? im using phplist for my mailing list...thanks

  2. #2
    Join Date
    Aug 2007
    Location
    127.0.0.1
    Posts
    92
    Quote Originally Posted by Terryy View Post
    hi there, i would like to ask how do i add the thing to my blogshop for customers to input their email address and click on the button to auto subscribe to the mailing list...any idea?? im using phplist for my mailing list...thanks
    phplist as any other list script/program comes with a subscribe made form..

    read here http://docs.phplist.com/CustomSubscribeForm

    good luck!

  3. #3
    Join Date
    May 2006
    Posts
    200
    thanks for the help but somehow i experience this problem when i save the source code file as .html document and upload to my server, it says The method post is not allowed when i click on the subscribe button after entering my email...??

  4. #4
    Join Date
    Aug 2007
    Location
    127.0.0.1
    Posts
    92
    Quote Originally Posted by Terryy View Post
    thanks for the help but somehow i experience this problem when i save the source code file as .html document and upload to my server, it says The method post is not allowed when i click on the subscribe button after entering my email...??
    It just means that the link to which the form points (the one in "action") is wrong... you are surely posting the form to another html page

    post your form's code.

    cheers,

  5. #5
    Join Date
    Nov 2003
    Location
    Chicago
    Posts
    570
    did you fix this Terry?
    Let's talk custom servers and reseller plans

  6. #6
    Join Date
    May 2006
    Posts
    200
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html><head>
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
    <meta http-equiv="pragma" content="no-cache" />
    <link rev="made" href="mailto:phplist%40tincan.co.uk" />
    <link rel="home" href="http://www.phplist.com" title="phplist homepage" />
    <link rel="copyright" href="http://tincan.co.uk" title="Copyright" />
    <link rel="license" href="http://www.gnu.org/copyleft/gpl.html" title="GNU General Public License" />
    <meta name="Author" content="Michiel Dethmers - http://www.phplist.com" />
    <meta name="Copyright" content="Michiel Dethmers, Tincan Ltd - http://tincan.co.uk" />
    <meta name="Powered-By" content="phplist version 2.10.5" />
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Subscribe to our Newsletters</title><link href="styles/phplist.css" type="text/css" rel="stylesheet">
    </head>
    <body bgcolor="#ffffff" background="images/bg.png">
    <a name="top"></a>
    <div align=center>
    <table cellspacing=0 cellpadding=0 width=710 border=0>
    <tr>
    <td bgcolor="#000000" rowspan=3><img height=1 alt="" src="images/transparent.png" width=1 border=0></td>
    <td bgcolor="#000000"><img height=1 alt="" src="images/transparent.png" width=708 border=0></td>
    <td bgcolor="#000000" rowspan=3><img height=1 alt="" src="images/transparent.png" width=1 border=0></td>
    </tr>
    <tr valign="top" align="left">
    <td>
    <!--TOP TABLE starts-->
    <TABLE cellSpacing=0 cellPadding=0 width=708 bgColor=#ffffff border=0>
    <TR vAlign=top>
    <TD colSpan=2 rowspan="2" height="63" background="images/topstrip.png"><a href="http://www.phplist.com" target="_blank"><img src="images/masthead.png" border=0 width=577 height=75></a></TD>
    <TD align=left
    background="images/topstrip.png" bgcolor="#F0D1A3"><FONT
    size=-2>&nbsp;<I>powered by: </I><BR>&nbsp;<B>[<A class=powered
    href="http://www.php.net/" target=_new><I>PHP</I></A>]</B> + <B>[<A
    class=powered href="http://www.mysql.com/"
    target=_new>mySQL</A>]</B></FONT></TD></TR>
    <TR vAlign=bottom>
    <TD vAlign=bottom width=132
    background="images/topright.png" bgcolor="#F0D1A3"><SPAN
    class=webblermenu>PHPlist</SPAN></TD></TR>
    <TR>
    <TD bgColor=#000000><IMG height=1 alt=""
    src="images/transparent.png" width=20
    border=0></TD>
    <TD bgColor=#000000><IMG height=1 alt=""
    src="images/transparent.png" width=576
    border=0></TD>
    <TD bgColor=#000000><IMG height=1 alt=""
    src="images/transparent.png" width=132
    border=0></TD></TR>
    <TR vAlign=top>
    <TD>&nbsp;</TD>
    <td><div align=left>
    <br />
    Subscribe to one or more of our newsletters using the form below
    <br/><font class="required">required field</font><br/>

    <script language="Javascript" type="text/javascript">
    function checkform() {
    for (i=0;i<fieldstocheck.length;i++) {
    if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].type") == "checkbox") {
    if (document.subscribeform.elements[fieldstocheck[i]].checked) {
    } else {
    alert("Please enter your "+fieldnames[i]);
    eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
    return false;
    }
    }
    else {
    if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {
    alert("Please enter your "+fieldnames[i]);
    eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
    return false;
    }
    }
    }
    for (i=0;i<groupstocheck.length;i++) {
    if (!checkGroup(groupstocheck[i],groupnames[i])) {
    return false;
    }
    }

    if(! compareEmail())
    {
    alert("Email Addresses you entered do not match");
    return false;
    }
    return true;
    }
    var fieldstocheck = new Array();
    var fieldnames = new Array();
    function addFieldToCheck(value,name) {
    fieldstocheck[fieldstocheck.length] = value;
    fieldnames[fieldnames.length] = name;
    }
    var groupstocheck = new Array();
    var groupnames = new Array();
    function addGroupToCheck(value,name) {
    groupstocheck[groupstocheck.length] = value;
    groupnames[groupnames.length] = name;
    }
    function compareEmail()
    {
    return (document.subscribeform.elements["email"].value == document.subscribeform.elements["emailconfirm"].value);
    }
    function checkGroup(name,value) {
    option = -1;
    for (i=0;i<document.subscribeform.elements[name].length;i++) {
    if (document.subscribeform.elements[name][i].checked) {
    option = i;
    }
    }
    if (option == -1) {
    alert ("Please enter your "+value);
    return false;
    }
    return true;
    }
    </script><form method=post name="subscribeform"><table border=0>
    <tr><td><div class="required">Email</div></td>
    <td class="attributeinput"><input type=text name=email value="" size="40">
    <script language="Javascript" type="text/javascript">addFieldToCheck("email","Email");</script></td></tr>
    <tr><td><div class="required">Confirm your email address</div></td>
    <td class="attributeinput"><input type=text name=emailconfirm value="" size="40">
    <script language="Javascript" type="text/javascript">addFieldToCheck("emailconfirm","");</script></td></tr><tr><td colspan=2>
    <span class="attributeinput"><input type=checkbox name="htmlemail" value="1" /></span>
    <span class="attributename">I prefer to receive emails in HTML format</span></td></tr>
    </table><input type="hidden" name="list[2]" value="signup"><input type="hidden" name="listname[2]" value="Testing"/><div style="display:none"><input type="text" name="VerificationCodeX" value="" size="20"></div><p><input type=submit name="subscribe" value="Subscribe to the Selected Newsletters" onClick="return checkform();"></p>
    </form><br/><br/>
    <p><a href="<A href="http://mydomain.com/list/?p=unsubscribe&id=1">Unsubscribe</a></p">http://mydomain.com/list/?p=unsubscribe&id=1">Unsubscribe</a></p>
    <p align=left><a href="<A href="http://www.phplist.com"><img/">http://www.phplist.com"><img src="http://phplist.tincan.co.uk/images/2...er-phplist.png" width=70 height=30 title="Powered by PHPlist version 2.10.5, &copy; tincan ltd" alt="Powered by PHPlist2.10.5, &copy tincan ltd" border="0"></a></p></div>
    </td>
    <td>
    <div class="menutableright">
    </div>
    </td>
    </tr>


    <tr><td colspan="4">&nbsp;</td></tr>

    <tr><td colspan="4">&nbsp;</td></tr>
    </table>
    <!--TOP TABLE ends-->
    </td></tr>

    <tr>
    <td bgcolor="#000000" colspan=3><img height=1 alt="" src="images/transparent.png" width=1 border=0></td>
    </tr>
    <tr>
    <td bgcolor="#000000"><img height=1 alt="" src="images/transparent.png" width=1 border=0></td>
    <td bgcolor="#ff9900" class="bottom">&copy; <a href="http://tincan.co.uk" target="_tincan" class="urhere">tincan limited</a> | <a class="urhere" href="http://www.phplist.com" target="_blank">phplist</a> - version <?php echo VERSION?></td>
    <td bgcolor="#000000"><img height=1 alt="" src="images/transparent.png" width=1 border=0></td>
    </tr>
    <tr>
    <td bgcolor="#000000" colspan=3><img height=1 alt="" src="images/transparent.png" width=1 border=0></td>
    </tr>
    <tr>
    <td colspan=3><img height=3 alt="" src="images/transparent.png" width=1 border=0></td>
    </tr>
    <tr>
    <td colspan=3>
    &nbsp;
    </td>
    </tr>
    </tbody>
    </table>
    </div>
    </body></html>
    The above is the default code which i never edit anything at all...

  7. #7
    Join Date
    Nov 2003
    Location
    Chicago
    Posts
    570
    is this page on the same level with the phplist script?
    Let's talk custom servers and reseller plans

  8. #8
    Join Date
    May 2006
    Posts
    200
    yes, in fact i got these code from viewing the source code from the url

  9. #9
    Join Date
    Nov 2003
    Location
    Chicago
    Posts
    570
    send me a PM with the URL of the page so I can look at this if you like.
    Let's talk custom servers and reseller plans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •