TEENFRONT Posted June 2, 2010 Share Posted June 2, 2010 Hey all, Hoping this is a quick fix.. i have a little search system that searches player nicknames.. it works fine except when it run into a "#" character in the url.. it just for some reason totally doesnt recgonise anything. When searching for this player "[Ram] Drummer Sam #1" i urlencode it. http://www....co.uk/search_players.php?type=usernick&value=[Ram]+Drummer+Sam+#1&submit=Find doesnt work.. it misses off the #1 and only search for "[Ram] Drummer Sam " ... Why is it not seeing the "#1" ? more info im usuing a simple $_GET['value']; in my code and using a LIKE '%$value%' in my search query. Cheers guys ! Link to comment https://forums.phpfreaks.com/topic/203688-stumped-on-in-url/ Share on other sites More sharing options...
Alex Posted June 2, 2010 Share Posted June 2, 2010 # starts another part of the url known as the hash. To use something like that in a GET variable it should be properly encoded. # = %23. Use urlencode. Link to comment https://forums.phpfreaks.com/topic/203688-stumped-on-in-url/#findComment-1066881 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.