# Join Template Variables

*Article Topics:* [*Sites*](/getting-started/common-topics/sites.md)*,* [*Tour*](/getting-started/common-topics/tours.md)*,* [*Templates*](/getting-started/common-topics/templates.md)

## Join Template Variables

The following variables can be used in join templates, which are located in the [Sites Admin](/nats-admin/sites/site-templates.md). These [Smarty](/using-nats/one-off-articles/smarty.md) variables allow you to receive information to display on your Join Templates.&#x20;

### Before Surfer Submit

* {$\_siteid}
* {$\_tourid}
* {$cascade}
* {$config} (array)
* {$countries} (array)
* {$default\_option}
* {$is\_third\_party}
* {$join\_optionids} (array)
* {$join\_options} (array)
* {$nats\_code}
* {$ncr\_option}
* {$num\_join\_options}
* {$payment\_options} (array)
* {$payment\_options\_section} (array)
* {$program}
* {$site}
* {$site\_data} (array)
* {$site\_info} (array)
* {$states} (array)
* {$states\_au} (array)
* {$states\_ca} (array)
* {$states\_us} (array)
* {$tour\_info} (array)

### After Surfer Submit

The following template variables, including the ones mentioned above, can be used after a surfer has submitted the join form and received errors.&#x20;

* {$errors} (array)
* {$vars} (array)

## Gateway Join Template Variables

Gateway Join Template Variables are used to pass information a surfer has entered on the join page to the gateway join template. You can use the following variables on the gateway\_join template in the [Sites Admin](/nats-admin/sites/site-templates.md), for example, to pass the email address entered by a user on a join template to the gateway join template.

This depends on whether you are using a [Gateway Biller](/getting-started/integrations/supported-billers.md#integrated-gateway-billers).&#x20;

### Before Surfer Submit

* {$\_siteid}
* {$\_tourid}
* {$billerid}
* {$bshort}
* {$cc\_months} (array)
* {$cc\_years} (array)
* {$config} (array)
* {$countries} (array)
* {$country}
* {$mdata} (array)
* {$member\_ident\_details}
* {$option\_info} (array)
* {$site\_info} (array)
* {$states} (array)
* {$states\_au} (array)
* {$states\_ca} (array)
* {$states\_us} (array)
* {$xsells} (array)

### After Surfer Submit

The following template variables, including the previous ones, can be used after a surfer has submitted the form and received errors.&#x20;

* {$errors} (array)
* {$vars} (array)

## Special Template Variables

There also exists another category of Template Variables known as Special Variables, which can be used on Special Site Templates.&#x20;

### mail\_affiliate\_on\_message

* {$firstname} {$affiliate\_email}

## Related Articles

{% content-ref url="/pages/Re5VgnlvWvWStron3wGY" %}
[Customizing your Join Form](/nats-admin/sites/common-questions/customizing-your-join-form.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.toomuchmedia.com/nats-admin/sites/further-reading/join-template-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
