Unstoppable Domains

[JS & PHP] Encoding and decoding a URL?

Spaceship Spaceship
Watch

tm

Established Member
Impact
25
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
There is urldecode() in PHP
 
0
•••
yes, but how do you encode it to that state using javascript?
 
0
•••
0
•••
ok, got it sorted now :)

thanks sdsinc!
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back