tawevolution Posted November 29, 2006 Share Posted November 29, 2006 Is there anyway to get information from a cookie, and have it displayed in the url (www.e.g.com/index.php?cookie=content)? Quote Link to comment Share on other sites More sharing options...
taith Posted November 29, 2006 Share Posted November 29, 2006 as far as i know... only by putting it there[code]<a href="#?op=<?=$_COOKIE[var]?>">[/code] Quote Link to comment Share on other sites More sharing options...
alpine Posted November 29, 2006 Share Posted November 29, 2006 On php5 you can extract all cookies and generate an URL-encoded query string like this:[code]<?phpecho "<a href='www.blah.com/read.php?".http_build_query($_COOKIE)."'>LINK</a>";?>[/code]And for one cookie value alone, [code]<?phpecho "<a href='www.blah.com/read.php?".$_COOKIE['the_cookie_name']."'>LINK</a>";?>[/code] Quote Link to comment Share on other sites More sharing options...
tawevolution Posted November 29, 2006 Author Share Posted November 29, 2006 [quote]<?phpecho "<a href='www.blah.com/read.php?".$_COOKIE['the_cookie_name']."'>LINK</a>";?>[/quote]That is what i though of doing, just wanted any other ideas. THANKS xDOh, also, I know to send the data (Form method=get) how do i put that into a link (instead of a form). so click on an image link, which goes to www..com/index.php?lang=en Quote Link to comment Share on other sites More sharing options...
alpine Posted November 30, 2006 Share Posted November 30, 2006 Pardon ? Those are links provided - Or please explain further Quote Link to comment 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.