This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

capture php referrer


  1. leisurepublishing
    Member

    I notice that by default the form submissions also capture in hidden fields the IP address and date of submission of the submitter. I'd like to also capture the $_SERVER["HTTP_REFERER"] and have it show up in the captured data.

    What file(s) do I need to edit to accomplish that? Or maybe you can point me to a post that someone has asked something similar in the past (on any global variable)? I did look before posting though, didn't see anything.

    Thanks!

    Posted 15 years ago #
  2. yuniar

    This is pretty similar with my post here:
    http://www.appnitro.com/forums/topic/dynamic-content-php?replies=25#post-304

    However, you need to change this line:

    $element[$j]->default_value = $_GET['email'];

    to be like this:

    $element[$j]->default_value = $_SERVER["HTTP_REFERER"];

    MachForm Founder

    Posted 15 years ago #
  3. leisurepublishing
    Member

    Let's say I wanted to have it added to EVERY entry across all my forms under "Entry Data". What and where would I need to add code?

    Posted 14 years ago #

RSS feed for this topic

Reply