/    Sign up×
Community /Pin to ProfileBookmark

How to get href link

$_server[http_referer] shown URL address
I want get link that user click this on

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@TJ111Aug 14.2007 — [code=html]
<a href="<?php echo $_SERVER['HTTP_REFERER'];?>">Link</a>
[/code]


Like that?
Copy linkTweet thisAlerts:
@BigJumpauthorAug 14.2007 — no

be cerful

i want get destination url . this url maybe redirect

$_SERVER['HTTP_REFERER'] show source url
Copy linkTweet thisAlerts:
@TJ111Aug 14.2007 — Hmm, I don't understand exactly what you're asking.
Copy linkTweet thisAlerts:
@BigJumpauthorAug 14.2007 — 1- my current page is : http://www.anysites.com

2-one link in this page. exp : http://www.mysite.com/index.php?section=serve

this URL redirect me to : http://www.mysite.com/index.php?section=redir and redirect to destination URL(exp : http://www.google.com)

I want get URL 2 : (http://www.mysite.com/index.php?section=serve)

for check that user click my link or user type http://www.mysite.com/index.php?section=redir into address bar
×

Success!

Help @BigJump 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...