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. http://clickme.com/refer.php?r=2). 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.



17.4k
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.



18.0k

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

Here is a simple example: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml%5iframe

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.