Title: [Plugin: Contact Form 7] Using PHP in Forms
Last modified: August 19, 2016

---

# [Plugin: Contact Form 7] Using PHP in Forms

 *  [Website Managers](https://wordpress.org/support/users/webmgrs/)
 * (@webmgrs)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-using-php-in-forms/)
 * Is there any way to use PHP variables in the contact form? We are building an
   affiliate site and want the contact requests to be sent to the affiliate whose
   page the visitor is on.
 * There are cookies set with the username and affiliate email, but when I echo 
   the email using PHP, the form generates an error saying to contact the administrator.
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

The topic ‘[Plugin: Contact Form 7] Using PHP in Forms’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Website Managers](https://wordpress.org/support/users/webmgrs/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-using-php-in-forms/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
