Support » Plugins » Variable from post to contact form?

  • What I want is a button in a post that says ‘contact us’. That button links to the contact us page where a form field is populated with the slug or ID of the post you’ve just come from. That field is also repeated in the body of the email sent to the recipient. Is this possible?


Viewing 1 replies (of 1 total)
  • This can be done with some simple PHP. You can create a hidden field with the value set to whatever you want. When the user submits the form to the contact us page you can grab that value and add it to the page wherever you want using $_REQUEST[‘nameOfHiddenField’];

Viewing 1 replies (of 1 total)
  • The topic ‘Variable from post to contact form?’ is closed to new replies.