mailchimp:点击提交按钮直接订阅用户

时间:2012-10-09 05:32:22

标签: php wordpress mailchimp

我使用mailchimp订阅所有用户的简报,我添加了以下简报订阅表格(mailchimp的嵌入式表格)

   <div id="mc_embed_signup">
  <form action="http://mysite.us1.list-manage.com/subscribe/post?u=77819ee26cc4d495467172e15&amp;id=e2798374aa" method="post" id="mc-embedded-subscribe-   form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" value="Sign       up for newsletter..." required>
<div class="clear"></div><input type="submit" value="" name="subscribe" id="mc- embedded-subscribe" class="button">
   </form>
 </div>

工作正常但是当用户点击提交按钮时,它会被重定向到用户必须填写个人资料信息的其他页面,即姓名,地址。在填写信息之后,用户获得订阅。现在问题是我希望用户在点击提交按钮后直接订阅。任何人都可以指导我吗?

1 个答案:

答案 0 :(得分:3)

使用此代码,这是来自Aweber的newslatter ......

<div class="aweber">
<form class="forms" action="CHANGE FORM ACTION HERE" method="post"><input     type="hidden" name="meta_web_form_id" value="1455415225" /><input type="hidden"    name="meta_split_id" value="" />
    <input type="hidden" name="unit" value="aweberblog" />
    <input type="hidden" name="redirect" value="YOUR THANKU PAGE URL HERE" />
    <input type="hidden" name="meta_adtracking" value="sb-index" />
    <input type="hidden" name="meta_message" value="1" />
    <input type="hidden" name="meta_required" value="from" />
    <input type="hidden" name="meta_forward_vars" value="0" />
    <input type="hidden" name="meta_redirect_onlist" value="IF USER ALREADY SUBSCRIBD HERE ENTER URL FOR THAT"/>
    <label for="email"></label>
    <input id="email"  placeholder="Enter Your Email" style="width:45%; border-radius: 9px 9px 9px 9px; height: 35px; float:left;padding-left: 10px;" type="text" name="from" value=""/>
    <input type="image" src="<?php bloginfo('template_directory');?>/images/submitt.png">
    </form>
</div>