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
Started 15 years ago by leisurepublishing | 3 posts |
-
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 # -
This is pretty similar with my post here:
http://www.appnitro.com/forums/topic/dynamic-content-php?replies=25#post-304However, 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 # -
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 #
Reply
You must log in to post.