创建链接“订阅”

时间:2013-06-28 16:13:18

标签: html magento hyperlink subscribe

我有magento商业,我在html中创建一个自动电子邮件,当有人注册时(在Dreamweaver中)将发送该邮件。

在HTML代码中,我有一个关于订阅我们时事通讯的按钮。我必须链接到此图片的代码是什么,因此如果有人点击它,他将订阅简报。

提前致谢, 弗兰克

1 个答案:

答案 0 :(得分:1)

电话会议:

http://yourdomain.de/index.php/newsletter/subscriber/new/  

但是您可以在Mage_Newsletter_SubscriberController newAction中看到表单数据通过post发送,您可以在其中找到以下代码行。

  $this->getRequest()->isPost() && $this->getRequest()->getPost('email')

因此,您需要将表单字段命名为“email”

祝你好运!

编辑:

只需使用以下内容:

<form action="http://yourdomain.com/index.php/newsletter/subscriber/new/" method="POST" id="newsletter-validate-detail">
<input type="text" class="input-text required-entry validate-email" name="email" id="newsletter">
<input type="image" src="path to image" name="submit" />
</form>