Reputation: 113
Link:
<a id="mylink" href="http://mysite.com/traffic_analityc.php">My Link</a>
or image:
<img src="http://mysite.com/traffic_analityc.php" />
or iframe :
<iframe src="http://mysite.com/traffic_analityc.php"></iframe>
Thank's before..!
Upvotes: 1
Views: 206
Reputation: 36784
Add a GET
reference in each link and then get that reference in traffic_analityc.php
:
LINK:
<a id="mylink" href="http://mysite.com/traffic_analityc.php?src=href">My Link</a>
IMAGE:
<img src="http://mysite.com/traffic_analityc.php?src=img" />
IFRAME:
<iframe src="http://mysite.com/traffic_analityc.php?src=iframe"></iframe>
And then in the traffic_analityc.php
:
$source = isset($_GET['src']) ? $_GET['src'] : '';
$source
will of course equal either href, img or iframe.
Upvotes: 1