toolman Posted August 12, 2015 Share Posted August 12, 2015 Hi, I have a URL which pulls through some dynamic items, for example:http://www.website.com/page.shtml?code=home&ref=ref1&utm_source=direct&utm_medium=email&utm_campaign=weeklyThe ref=ref1 is a cookie, but I have an issue when going off that page and visiting another. The cookie somehow gets reset and results in it becoming undefined.What I would like to do is to append two links on the page withpage2.shtml?code=home&ref=ref1&utm_source=direct&utm_medium=email&utm_campaign=weeklyandpage3.shtml?code=home&ref=ref1&utm_source=direct&utm_medium=email&utm_campaign=weeklyso that the links will carry through the ref= and other items.I have read that I can use 'document.location.search', but I'm not sure how to do this, or if I can use jQuery either.Any ideas on how I can do this?Thanks! Link to comment https://forums.phpfreaks.com/topic/297748-append-links-with-current-dynamic-url/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.