Alice Wei wrote:
>> Date: Thu, 25 Feb 2010 13:50:16 -0600
>> From: nos...@mckenzies.net
>> To: aj...@alumni.iu.edu
>> CC: firstname.lastname@example.org
>> Subject: Re: PHP "GET" Error?
>> Alice Wei wrote:
>>> I forgot to mention that the url is formed from Actionscript, I am just
>>> using PHP to do the "I/O" because Actionscript does not have this option.
>>> So, I guess I cannot do the serialize here like you suggested. I have
>>> changed # to 0x for now, and that does not seem to help yet.
>>> BTW, below is the complete code, would this help with my choices?
>> Use encodeURI() or encodeURIComponent() on the data.
> Yes, and no. But, I did find the function in the Actionscript library, and
> I used the new url to pass through to PHP. Looks like it still didn't work,
> could the length be an issue?
> BTW, these two variables start off from Actionscript as "arrays", but
> would knowing this here help? It would be nice that I can just pass them on
> as arrays (I had to "turn them into strings" before I passed to PHP).
> Thanks for your help.
Those functions will work if you do it properly. As for arrays, the
only way I know of in js is to json encode them and then you can use the
PHP json_decode() to get them back. There is no native js function to
do this, however there may be one in the actionscript library or there
are some functions on the web that people have written.
Wait, I found this: http://code.google.com/p/as3corelib/
Functionality may already be in As, but may be of use.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php