Thanks. this returned: string(6) "abc123"
If the actual refering page url was www.referringpage.com/folder/abc123 how would I take what youve done but actually capture the url and then print the clickable link http://www.mynewlink.com/folder/abc123
As I mentioned, I know very little php. This is what I tried that didnt work:
$url = $_SERVER['HTTP_REFERER'];
$id = var_dump(parse_url($url, PHP_URL_PATH));
echo $id;
Hello, newbie here.
Let’s say this url refers to my page: www.referringpage.com/folder/abc123
(1) I want to capture the "abc123" part that comes after the last forward slash and assign it to a variable named "id"
(2) Then I want to create a clickable link: www.mynewlink.com/folder/abc123
Probably pretty simple to the vets. Thanks in advance!
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.