Guest upirate Posted March 13, 2007 Share Posted March 13, 2007 /results.php?mysearch=canon%20sd450 when I do $_GET['mysearch'] to not have %20. thanks Link to comment https://forums.phpfreaks.com/topic/42545-what-function-can-i-use-to-clean-up-a-url-thanks-guys-and-girls/ Share on other sites More sharing options...
Orio Posted March 13, 2007 Share Posted March 13, 2007 First of all, php converts it automatically, so you don't need to use it on get/post variables that you recieve. But if you still need to "clean up a URL" (as you defined it) for some reason, use urldecode(). Orio. Link to comment https://forums.phpfreaks.com/topic/42545-what-function-can-i-use-to-clean-up-a-url-thanks-guys-and-girls/#findComment-206430 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.