Page 1 of 1
PHP Server Side...
Posted: Tue Nov 08, 2005 2:22 pm
by shoxlx
Is there a php server-side code or function to automatically remove spaces from a http link...

ex... someone types in their address bar:
http://shoxlx.com/whatever/index.php?name=John Smith
Posted: Tue Nov 08, 2005 3:03 pm
by Luke
urlencode() the input.
Posted: Tue Nov 08, 2005 3:04 pm
by Luke
Wait... sorry... I didn't read the question very well... nvm. I don't think you can do what you asked. Why would somebody type in their own query string?
Posted: Tue Nov 08, 2005 3:32 pm
by shoxlx
You would be givin a url string... then put it as a link in ur aim profile
Posted: Tue Nov 08, 2005 3:47 pm
by Luke
If you're giving them the link, why don't you just encode the query string yourself? with urlencode()