Hi Can you please help. Does this code header ("Location: http://www.somepage.com/"); will send http referer url? Thanks
Hi there, The header() function will send headers to the browser. In your case, header("location:http://www.somewhere.com") will tell the browser to redirect your visitor to a new location. The landing page (the page you're redirecting people to) can tell where the visitor came from by using this super variable: $_SERVER['HTTP_REFERER']. For example: $referrer = $_SERVER['HTTP_REFERER']; echo "This visitor came from $referrer"; PHP: