I'm not a php coder but I need a script for this situation:
xyz.com redirects to abc.com/index.html, then this redirects to abc.com/index.php
But the URL in the address bar stays xyz.com the whole time, so I want a text field of my form in index.php to show xyz.com as referrer how do I do it through php or java.
And I can't make changes to xyz.com as I don't host a site there, it's just forwarding to abc.com/index.html
This is the script:
<?php
$server=$_SERVER['HTTP_REFERER'];
echo $server;
?>
It keys in abc.com/index.html in the textfield. How do i get xyz.com?