Title: Adding a command/value to a link
Last modified: August 20, 2016

---

# Adding a command/value to a link

 *  [ktrusak](https://wordpress.org/support/users/ktrusak/)
 * (@ktrusak)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/adding-a-commandvalue-to-a-link/)
 * Is there a way to have links execute commands? I am new to this and have some
   trouble so help is appreciated!
 * What I am looking for is to have a link for sending a message to a specific user.
   I have the User Messages plugin, which allows for private messaging on the front
   end. I was hoping to create a link that will redirect to the create message URL(
   [http://hookahi.com/messages/write-message](http://hookahi.com/messages/write-message)),
   but have the link contain the value # for the recipient. Basically, a link that
   sets the value of a certain input/field, is that possible?
 * What I am hoping for… the profile of user Phil who’s “value #” is 17. A link 
   that says “Send Phil a Message” with the link as ‘`<a href="" class="user.select"
   value="17">Send Phil...</a>`‘ or something like that? Can that be done?

The topic ‘Adding a command/value to a link’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [Messaging](https://wordpress.org/support/topic-tag/messaging/)
 * [value](https://wordpress.org/support/topic-tag/value/)

 * 0 replies
 * 1 participant
 * Last reply from: [ktrusak](https://wordpress.org/support/users/ktrusak/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/adding-a-commandvalue-to-a-link/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
