| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | [JS & PHP] encoding and decoding a URL? 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
__________________ You design in photoshop, I code into valid XHTML/CSS. Professional PSD, PNG or HTML to tableless XHTML/CSS designs. For more info, send me a PM. |
| |
| | #3 (permalink) |
| Senior Member | yes, but how do you encode it to that state using javascript?
__________________ You design in photoshop, I code into valid XHTML/CSS. Professional PSD, PNG or HTML to tableless XHTML/CSS designs. For more info, send me a PM. |
| |
| | #4 (permalink) |
| Domains my Dominion | I am lazy but there are resources on google, for example http://lab.artlung.com/urlencode/ as a starting point I searched with javascript+urlencode
__________________ Buy now - MassDeveloper.com $500 |
| |
| | #5 (permalink) |
| Senior Member | ok, got it sorted now ![]() thanks sdsinc!
__________________ You design in photoshop, I code into valid XHTML/CSS. Professional PSD, PNG or HTML to tableless XHTML/CSS designs. For more info, send me a PM. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |