I need to have a field with referer-url $_SERVER['HTTP_REFERER']

Home Forums Plugin Support I need to have a field with referer-url $_SERVER['HTTP_REFERER']

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Thomas Pilgrim 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9019

    Is it possible to have a hidden field which contains the url-referer ( $_SERVER[‘HTTP_REFERER’];)

    I need to see the page-url where the customer came from.

    For Example i do have hundrets of products and one user meta form.
    The customer clicks on the product to get to the form. Then i need a field to be filled with the referrer url.

    I do had this working with contact-form-7 with the following code:
    ####
    function getRefererPage( $form_tag ) {
    if ( $form_tag[‘name’] == ‘referenzseite’ ) {
    $form_tag[‘values’][] = $_SERVER[‘HTTP_REFERER’];
    }
    return $form_tag;
    }
    #####

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.