Forum Moderators: coopster

Message Too Old, No Replies

change url string

         

webnoob

9:15 pm on Aug 17, 2006 (gmt 0)

10+ Year Member



how can i change the '&', '?', '=' characters in a url to something else?

ie:

page.php?school=23

to:

page.php,school~23

i've seen a tutorial somewhere how to do this within php scripts.. can't find the page though.
thanks for any help.

jatar_k

9:46 pm on Aug 17, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you could use str_replace [php.net]

whoisgregg

3:04 pm on Aug 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Although I bet urlencode [php.net] would be a helpful function for this specific scenario... that or htmlentities.