PDA

View Full Version : [JS & PHP] encoding and decoding a URL?



themoose
March 22nd, 2006, 04:35
Hey,

how do you encode & decode a url from javascript to php ?
ie the javascript would send data to php via a url:
blah.php?q=[encoded url here]
and the blah.php would be able to decode [encoded url here] to something that it can then do stuff with.

NEEDS to be able to cope with line
breaks.

Any help?

-tm

themoose
March 22nd, 2006, 08:32
-nvm-

mods? delete/close thread please :)

Richard
March 22nd, 2006, 08:59
Can you let us know how you worked this? I'm sure some of us would like to know ;)

themoose
March 22nd, 2006, 10:28
I didnt get how to do that, i just found another way to accomplish what i wanted.