{NcsO}ReichstaG
[H]ard|Gawd
- Joined
- Aug 13, 2004
- Messages
- 1,768
Hello,
So I need to pass an array from PHP to javascript (nevermind the security risk). I did this using
On the javascript side I used
to turn it back into an array. However, when there is a character such as ' or "" " ', it doesn't work. How do I solve this? I tried encodeURI/decodeURI but it did not seem to work..
Also, do I call encodeURI after constructing the array?
-thanks
So I need to pass an array from PHP to javascript (nevermind the security risk). I did this using
Code:
implode(":#:",$array);
Code:
split(":#:");
Also, do I call encodeURI after constructing the array?
-thanks