There normally should be no reason to urldecode() some value from $GET, as PHP automatically decodes the GET data in the HTTP request before populating it into the $GET array. (There could be cases where you want to urlencode() it, but with the info provided I have know way of knowing at this point if it applies in this case.)