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? 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']); Link to comment https://forums.phpfreaks.com/topic/98230-in-url/#findComment-502608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.