PLEASE URGENT! How does a referral system work.

Hello guys. I have an URGENT! task to create a referral system that works by viewing sites. It has to be based on viewing sites. But I don't quite understand the principle how it works? As far as I have noticed how those systems work - the base url of the site doesn't change (e.g. So how is a site being viewed when someone doesn't leave a site of a referral system. Would be grateful for any ideas. Thanks in advance.

edited Sep '14

DO I have to include someone's site as an iframe? Please, I would be really grateful if someone could explain how this works to me.


iFrames are certainly an easy way to load an external page within another page.

Here is a simple example:

You can also do a more advancted version using Ajax where you load the contents into a div on your page, though you may run into some Cross Site scripting obstacles.