- Support Home
- Knowledge Base
- Web Forms
- Subscribe Forms
- Basic Subscribe Form Example
Basic Subscribe Form Example
A simple example form is shown below.
This form collects subscriber name and email data, and adds subscribers to a single newsletter list. All submissions of the form are linked to a campaign within Taguchi for reporting purposes, and a welcome email is sent on successful submission.
Code
<form name="signup" method="POST" action="http://edm2.taguchimail.com/public/subscriber">
<label for="tm_email">Email address:</label>
<input type="text" name="email" id="tm_email" value="" />
<label for="tm_subscriber_firstname">First name:</label>
<input type="text" name="subscriber_firstname" id="tm_subscriber_firstname" value="" />
<input type="submit" name="submit" value="Subscribe »" />
<input type="hidden" name="dest" value="http://example.org/signup-success" />
<input type="hidden" name="err" value="http://example.org/signup-error" />
<input type="hidden" name="evt" value="e" />
<!-- List ID as shown in TM admin interface -->
<input type="hidden" name="lists" value="1" />
<!-- Campaign ID as shown in TM admin interface -->
<input type="hidden" name="campaign" value="1" />
<!-- Activity ID as shown in TM admin interface -->
<input type="hidden" name="src" value="1" />
</form>