I am currently working on an application that contacts a mySQL data base using php. In my app there is a string that will be submitted to the server but obviously if the string has a space in it the app cannot load the URL. Does anyone know how to replace spaces in a URL to %20?