samarudge 16 Posting Whiz

On the URL shortener at DFT.BA, when a user visits a link we need the reffer header to be sent to the website we're directing too (For analytics etc.)
Currently the URL redirect code is

header("Location: {$Link['link_target']}");
header("Refer: http://dft.ba/");
header("Referer: http://dft.ba/");

//Fallback for older browsers
echo "<html><body><a href=\"{$Link['link_target']}\">Click To Go</a></body></html>";

($Link is the target URL)
This code isn't working, how do I set the refer properly?
-Sam

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.