I have searched the forum up and down. I was unable to locate a similar solution. Forgive me for being a newbie.
I have a website which has a bunch of affiliate products on it which I review.
I want to send all of my outbound links to a redirect page. I do not want to have 200 redirects on my website, so I would like to build it in PHP.
LINK EXAMPLE ON MY SITE: hxxp://www.mydomainname.com/redirect.php?site=dogtrainer
On the next page which is REDIRECT.PHP I need to do the following. But that is my problem...I'm a NEWBIE![]()
redirect.php will need to GET the Variable from the URL.
From this point on is where I am confused on the best way to do this.
I am going to have maybe 100 + Affiliate URL's.
Each affiliate URL will have an associated TITLE.
So when I GET the variable from the URL I need to build the code below where the TITLE and URL are dynamic based on the GET Variable.
I do not know the complexity of what I am asking...but any help with this will be much appreciated.
Thanks in Advance for all of your help.
PHP Code:<html>
<head>
<title>TITLE OF PAGE</title>
</head>
<frameset border="0" frameborder="0" marginleft="0" margintop="0" marginright="0" marginbottom="0" rows="100%,*">
<frame src="URL FOR AFFILIATE WEBSITE" scrolling="auto" frameborder="no" border="0" noresize>
<frame topmargin="0" marginwidth="0" scrolling="no" marginheight="0" frameborder="no" border="0" noresize>
</frameset>
</html>



It seems pretty messy to pass a full HTTP in the query string... Do you have any other ideas?

Bookmarks