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 Quote Link to comment Share on other sites More sharing options...
Solution Psycho Posted August 15, 2013 Solution Share Posted August 15, 2013 (edited) 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(). Edited August 15, 2013 by Psycho 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.