We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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. https://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.



28.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.



25.1k

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

Here is a simple example: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe

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.