|
-
Hello
I use load variable targeting a php script
so:
loadVariable("http://xxxx.xxxx.xxxx/number.php","/");
in number.php i do a
echo "nt=10&na=20";
but when i try to use nt or na in script, is not usable
i allso like to mention that nt and na ar listed by menu->debug->list variables and there are ok.
( nt="10"
na="20")
maybe i do a bad targeting,( should i load them in anothere way? or should I try to address them in a different way ?)
I DON'T KNOWWWWWWWWWWWWW !
and i;m about to explode !
so please help me if you can !!!
many Thanks
Bogdan
-
If you're using Flash 5 (which I assume you are from this forum name) you can try using an include() instead of a LoadVariables. Then in your php file you don't have to worry about printing a URL-encoded query string, you can just have it print out:
nt=10;
na=20;
... as if it were just normal statements in an internal script.
If for some reason you can't use an include like this, I would suggest putting in a trace statement in your script:
trace("nt="+nt+" ; na="+na);
just to see if the variables are actually getting loaded. It could be that they're being loaded fine but are being interpreted as the wrong type (ie. number vs. string) in your script. You could try using Number(na) or String(na) to force the type.
-
Make sure you are not trying to use your variables until 2 frames after you load them. For some reason F5 needs extra time to register that they have been loaded.
-
the variables that i send from php are dynamic generated
so i cannot includ them in a file
am I wrong ?
-
You can *not* use include like that. Include only works at compile time.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|