Can I use my own form?

You can add a Signup Form to your site without using the Signup Form tool. We recommend the "Signup Form" tool because it's the easiest way to integrate AWeber with your website, it's the most reliable, and it lets AWeber support diagnose errors more easily. If you'd rather build your own form with HTML, use the reference information below to connect it to your AWeber list.


Form Action

Set the form's action to AWeber's subscribe script:

<form method="post" action="https://www.aweber.com/scripts/addlead.pl">

Required Fields

The name field must have "name" set as the "name" attribute:

<input type="text" name="name" value="" />

The email field must have "email" set as the "name" attribute:

<input type="text" name="email" value="" />

Hidden Fields

Hidden fields control where the form sends data and where subscribers land after signing up. Replace each value with your own information, and make sure any page URL includes the full "https://" address.

Name

Value

Required or Optional

listname

The unique list ID the form will add subscribers to.

Required

redirect

The complete URL of the page subscribers are sent to after signing up.

Required

meta_required

The names of any fields, separated by commas, to require and validate before a submission is accepted. Defaults to email.

Required

meta_redirect_onlist

The complete URL of the page existing subscribers are sent to if they submit the form again.

Optional

meta_adtracking

The ad tracking value assigned to subscribers who use this form.

Optional

meta_forward_vars

Set to 1 to forward all submitted fields to the redirect page using the GET method.

Optional


Installing the Form

Install the HTML code anywhere between the <body> tags of your site.


Example Form

HTML
<form method="post" action="https://www.aweber.com/scripts/addlead.pl">
<input type="hidden" name="listname" value="[your unique list ID here]" />
<input type="hidden" name="redirect" value="https://www.example.com/thankyou.htm" />
<input type="hidden" name="meta_redirect_onlist" value="https://www.example.com/thankyou.htm" />
<input type="hidden" name="meta_adtracking" value="custom form" />
<input type="hidden" name="meta_required" value="name,email" />
<input type="hidden" name="meta_forward_vars" value="1" />
<input type="text" name="name" value="" /> Name
<input type="text" name="email" value="" /> Email
<input type="submit" name="submit" value="Subscribe" />
</form>

Adding Custom Fields

To add custom fields, first add them to the AWeber list your form connects to. Then add an input with the name set to "custom [Your Custom Field Name]":

<input type="text" name="custom Color" value="" />

Adding Tags

To apply a tag when someone subscribes, set "meta_tags" as the "name" attribute:

<input type="hidden" name="meta_tags" value="[enter name of tag here]" />

To apply multiple tags, separate each value with a comma:

<input type="hidden" name="meta_tags" value="TAG1,TAG2,TAGn" />

To apply a tag based on a custom field's value, add a field with the name set to "tagif_custom [Your Custom Field Name]":

<input type="hidden" name="tagif_custom Color: [name of your field]" value="[tag applied]" />