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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/204844-variable-url-problem/#findComment-1072342 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.