Solved

Forwarding affilates through my site first

Posted on 2009-07-04
4
236 Views
Last Modified: 2012-05-07
i have various affiliate (casinos) ok. i am writing various books, now i want to place links within my books that instead of directly feeding to website, they come to mysite and i can forward them then on to the website.

two reason for this, i want to control my affiliates and scondly see which casinos etc are the most popular.

But i dont know how to write this. can some one help me out.
0
Comment
Question by:ilike-centre
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Jagarm earned 250 total points
ID: 24777382
If you want to record information about your affiliates, you may need to use a server side language such as php, asp/asp.net or anything else.

In PHP for example, if you want to link to a web site, but first want to record the number of visits to that web site, is to pass the web site as follow:

http://www.yourdomain.com/affiliate.php?site=www.google.com,

so in the server side of affiliate.php you would read the site as $_GET['site'] and do whatever you want and then direct the user to the site they clicked.

I'm not really sure what web language you are most comfortable with, and it depends if your host supports it, these days almost all host have php installed
0
 
LVL 2

Assisted Solution

by:cedricdo
cedricdo earned 250 total points
ID: 24777976
I would recommend using a script that doesn't show the URL as with Jagarm's example. If I were reading a book, I would skip the affiliate.php and just go directly to the site. Have someone make you one that looks like so: a.example.com/1

That way they can't find out the URL without going though your website first.

(I will try to make something like this, it might take a while though)
0
 
LVL 5

Expert Comment

by:Jagarm
ID: 24778531
cedricdo, that's a good idea as well, and have a table where the id is the primary key and another field let's say site to have the site name, and any other information they need.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now