/    Sign up×
Community /Pin to ProfileBookmark

reg:affiliate program

hi there

here is a case where my question came

i have my javascript code that links to my website that can be pasted in the other websites.

when a user goes to a website(eg. [url]www.besthotell.com[/url] which contains the javascript link to my website).He clicks the link and visits my website.

Now i have my problem here. I need a reference in my database as to the name of the website(say, [url]www.besthotell.com[/url]) from where the user clicked the link to visit my website.How can i get the website name?

Suggest me some solution.

Thanks

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@sridhar_423Feb 16.2006 — try this...

$_SERVER['HTTP_REFERER']
×

Success!

Help @keerthi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...