mikefrederick Posted March 27, 2008 Share Posted March 27, 2008 is there anyway to put & in a url and not have php thing that a GET variable in the URL has ended? Quote Link to comment https://forums.phpfreaks.com/topic/98230-in-url/ Share on other sites More sharing options...
wildteen88 Posted March 27, 2008 Share Posted March 27, 2008 use urlencode when adding an ampersand into the url, eg: $url = 'mysite.com?var=hello&welcome'; echo urlencode($url); when you retrieve the var url variable, use urldecode, eg: echo urldecode($_GET['var']); Quote Link to comment https://forums.phpfreaks.com/topic/98230-in-url/#findComment-502608 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.