change characters for url?
Posted: Tue Mar 14, 2006 9:32 pm
Hi everybody,
long time no see...
i came on the problem that when my artists sign up, i want to give them a url like:
http://www.mysite.com/bands/artistname
For that, no problem.
But... When the artistname is for example:
http://www.mysite.com/bands/more words artistname
I would like that all the spaces in the artistname are replaced with underscores, and that
characters that arent valid in a url are deleted.
Whit what function i can do that?
Any help would be great...
Greets,
Tom
long time no see...
i came on the problem that when my artists sign up, i want to give them a url like:
http://www.mysite.com/bands/artistname
For that, no problem.
But... When the artistname is for example:
http://www.mysite.com/bands/more words artistname
I would like that all the spaces in the artistname are replaced with underscores, and that
characters that arent valid in a url are deleted.
Whit what function i can do that?
Any help would be great...
Greets,
Tom