Title: Collect variable from user
Last modified: August 30, 2016

---

# Collect variable from user

 *  [emike09](https://wordpress.org/support/users/emike09/)
 * (@emike09)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/collect-variable-from-user/)
 * Hello,
    I’m trying to create a form that allows users to e-mail their city officials
   from their own mail client, based on what city they choose to e-mail.
 * In this form, users would click checkboxes with the people they choose to e-mail,
   and would enter their name and address information. When they click submit, the
   variables will be placed into the e-mail below.
 * Here is the code I’m using to send the e-mail out. The [variables] are the ones
   that I want populated.
 *     ```
       <span style="font-size: 18pt;"><a href="mailto:[email1]?cc=[email2]&subject=Conern%20toward%20American%20Fork%20Canyon&
       body=Date]<br><br>Dear%20[contactname]:<br><br>My%20name%20is%20[firstname]%20and%20I%20reside%20at%20[address]%20in%20[city],;<br><br>[firstname%20lastname]">E-Mail your elected officials</a></span>
       ```
   

The topic ‘Collect variable from user’ is closed to new replies.

## Tags

 * [e-mail](https://wordpress.org/support/topic-tag/e-mail/)
 * [send](https://wordpress.org/support/topic-tag/send/)
 * [session](https://wordpress.org/support/topic-tag/session/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [emike09](https://wordpress.org/support/users/emike09/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/collect-variable-from-user/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
