damiantaylor Posted May 23, 2011 Share Posted May 23, 2011 Hi guys, I've seen a lot of posts with this question but I still haven't managed to get it working! I have the following URL: www.myurl.com?&fltAccessories=Steel File & Oxide Stone I'm using the following code to read all the $_GET variables while(list($key, $value) = each ($_GET)) { .... .... } Problem is, $value contains 'Steel File' in this example. I've tried urldecode around the $_GET but to no avail. Anyone any idea how to make this work? Link to comment https://forums.phpfreaks.com/topic/237238-_get-with-ampersand-again/ Share on other sites More sharing options...
wildteen88 Posted May 23, 2011 Share Posted May 23, 2011 Is this fltAccessories being set by a form the user submits? Maybe you should use post rather than get. Or if it is being defined from a link the you use urlencode when defining the value to fltAccessories. Link to comment https://forums.phpfreaks.com/topic/237238-_get-with-ampersand-again/#findComment-1219151 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.