Jump to content

Referral/source script?


KillerCreatives

Recommended Posts

Hi guys

 

Just venturing in to some basic PHP scripting & I have a problem!

 

I've recently completed a website for a client which includes a simple form with some verification/compulsory fields; all working well so far.

 

The client has several other websites/partners sending leads through to their main site, and they need to be able to identify which one of those partner websites the traffic came from - this is where I'm getting stuck.

 

I originally posted:

 

<input type='hidden' name='referrer' value='<?php print $_SERVER['HTTP_referer']?>'>

 

but that just reports back:

 

<input type='hidden' name='referrer' value=''>

 

I've seen some script dotted around the Web which kind of works, but only actually shows the URL of the client's page the form was sent from, not the page that sent the customer to the client's site in the first page.

 

Help?!

Link to comment
https://forums.phpfreaks.com/topic/161652-referralsource-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.