Jump to content

catch a url link


westman

Recommended Posts

Guest So Called
i do i understand thank you but what about...<?php$new_url = $_SERVER['HTTP_REFERER'];?>to get it in a $?
You can use that in your own script to capture the URL of a site that linked to you. For example, if you paste a link to your site here in this topic that points to the script with the code you showed, you will get $new_url = "w3schools.invisionzone.com/index.php?showtopic... etc etc."
Link to comment
Share on other sites

What the ######, am I speaking Swahili here? I answered your question in post 2.

i do i understand thank you but what about...<?php$new_url = $_SERVER['HTTP_REFERER'];?> to get it in a $?
Did you bother to test that? What happens when you print $new_url?
Link to comment
Share on other sites

Guest So Called
What the ######, am I speaking Swahili here? I answered your question in post 2.
I think it's an "English as a second language" problem. The OP just needed some extra help. It took me about 7-8 posts just to figure out what the question was, since I didn't understand why post #2 wasn't the answer. Apparently it was. :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...