WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Variable Default Text based on reference url (1 post)

  1. RyanJBaron
    Member
    Posted 3 years ago #

    I am trying to find a way to set the default "text" in the message area based upon the reference url, one possible way of doing this could be to use [?php]$refer_link = $_SERVER['HTTP_REFERER'];[?] to get the previous link, and then create an if statement and display different contact forms base upon the url,

    however I was looking for a more simple way that only uses 1 contact from and sets a variable based upon the $refer_link = $_SERVER['HTTP_REFERER']; link and use that variable to populate the "default text" in the contact from text area using a php variable, however I cannot use php in the contact from 7 area, I found a hack for an older version and I would prefer not to edit the plugin code so that updates wont mess things up, does anybody have a possible solutions?

    thanks ryan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic