urlencode function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

urlencode function

Post by itsmani1 »

hi
I want to handle strings like
New "paint" provides wireless
in my url but they create problems and only show "New" i tried to solve it using urlencode() but it did not worked.
any idea
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

I strip everything that isn't alphanumeric out of URLs, and replace all the spaces with either _ or - (depending on the site specification).
lanasa
Forum Newbie
Posts: 14
Joined: Mon Mar 26, 2007 7:49 am
Location: Buffalo, NY

Re: urlencode function

Post by lanasa »

Can you give an example of the exact code you are using?
Post Reply