PDA

View Full Version : Flash & PHP order variable returned issue?


gsim
10-17-2005, 12:31 PM
Is there an issue with regards the order variables are sent from flash to php?

I have actionscript code:

function handleLoad (success){
if (success) {
if (receivedData.myStatus=="1"){
_root.userID=receivedData.myID;
gotoAndPlay("questions",1);
} else {
submitMessage.text=receivedData.Message;
}
}
}

This works fine when I have following php


if ($numR==1) {
print "&myID=$id";
print "&Message=success Login Complete";
}


But if I change the order around so message comes before myID then it does not work. I need to send about 50 variables from a mysql database so I am a little concerned that they have to be received in the order is this the case?

Thanks

finchou
10-17-2005, 12:39 PM
does it happen if you put an extra '&' at the end?

gsim
10-17-2005, 12:44 PM
I just tried your suggestion and this seems to solve the problem of the order. do you know why this makes a difference?

Thanks for your help appreciated

peptobismol
10-17-2005, 04:00 PM
without the & at the end, there's an invisible character at the end (i think)