What is a good workaround for fields that have ‘&’? I have a site that is getting stuff via $_GET, but some of the fields are, for example: ‘Pants & shorts’… When I put this in a URL it gets all messed up 🙂 Any PHP fix for it? 🙂
For example:
http://localhost/clothes/?sex=both&order=newest&time=all&type=Pants%20&%20Shorts
Thank you!
Check the PHP manual for
urlencode()http://nl.php.net/manual/en/function.urlencode.php