Basic Subscribe Form Example

Last Updated: 17/4/2024     Tags: forms, subscribe, webform, capture, form
  • Switch Version
  • V5
  • V4

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 &raquo;" />

    <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>

Output