MDanz Posted June 15, 2010 Share Posted June 15, 2010 $search = "Test Car"; now when i put the variable at the end of a url like.. http://www.test.com/stack.php?search=$search the url becomes.. http://www.test.com/stack.php?search=Test when it should be http://www.test.com/stack.php?search=Test%20Car what's wrong? Link to comment https://forums.phpfreaks.com/topic/204844-variable-url-problem/ Share on other sites More sharing options...
Maq Posted June 15, 2010 Share Posted June 15, 2010 http://php.net/manual/en/function.urlencode.php Link to comment https://forums.phpfreaks.com/topic/204844-variable-url-problem/#findComment-1072342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.