V Posted August 17, 2010 Share Posted August 17, 2010 Is it possible to have a link like this, http://www.somesite.com/?id=243 and transfer the "id" (or another query string) into the website from the link but at the same time, not affect the website (since "id" isn't a query string originally used in the website's URL)? I hope that makes sense.. Quote Link to comment https://forums.phpfreaks.com/topic/211005-transferring-query-strings-from-link-to-website/ Share on other sites More sharing options...
MadTechie Posted August 17, 2010 Share Posted August 17, 2010 if you mean change http://www.somesite.com/?id=243 into something like http://www.somesite.com/243 then yes.. look into .htaccess redirects if you mean something else then please explain or give some examples Quote Link to comment https://forums.phpfreaks.com/topic/211005-transferring-query-strings-from-link-to-website/#findComment-1100545 Share on other sites More sharing options...
V Posted August 17, 2010 Author Share Posted August 17, 2010 MadTechie sorry that's not what I mean. I just want to retrieve a query string that I added to a link and pass it into the webpage it's linked to. Quote Link to comment https://forums.phpfreaks.com/topic/211005-transferring-query-strings-from-link-to-website/#findComment-1100549 Share on other sites More sharing options...
MadTechie Posted August 17, 2010 Share Posted August 17, 2010 you should be able to just echo it out, ie echo "<a href=\"http://google.com?q=".$_GET['q']; this could also be used in a iframe if you won't want it as "a link" but linked another way please explain Quote Link to comment https://forums.phpfreaks.com/topic/211005-transferring-query-strings-from-link-to-website/#findComment-1100557 Share on other sites More sharing options...
V Posted August 18, 2010 Author Share Posted August 18, 2010 Thanks MadTechie, it's close to what I need. I'll have to revise my post, I'm confused about what I'm trying to achieve myself.. Quote Link to comment https://forums.phpfreaks.com/topic/211005-transferring-query-strings-from-link-to-website/#findComment-1100576 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.