dachshund Posted August 15, 2013 Share Posted August 15, 2013 Hi, I'm having trouble with my $_GET command picking up spaces within the URL, for example if it says index.php?brand=carhartt that works fine, but if it says index.php?brand=Happy%20Socks it can't recognise there is a space. Any help? Thanks Link to comment https://forums.phpfreaks.com/topic/281202-cant-detect-space-in-url/ Share on other sites More sharing options...
Psycho Posted August 15, 2013 Share Posted August 15, 2013 Spaces aren't allowed in URLs and may be converted to %20. At least you should hope they are converted, otherwise they won't work. So, you need to convert them back to spaces. You can do this with urldecode(). Link to comment https://forums.phpfreaks.com/topic/281202-cant-detect-space-in-url/#findComment-1445162 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.