This content has been marked as final. Show 2 replies
Here's a bunch of notes....
click this link in your browser.
That should echo your player_name $_GET variable. It doesn't... it shows something else which means your script is not identical to your post above.
I always put the variable names in quotes - I didn't realise that you could do it without the quotes. I just tried it locally without the quotes and it works for me.
But you could try changing that.....
e.g. $player_name = $_GET['player_name'];
I had thought that you can send data without the security restrictions, it was just that you can't load the response in flash without them...the send method loads the response at the browser level - either replacing the current browser contents or in a new window or frame. So I'm not convinced that your issue is security related. But perhaps I'm wrong, others may care to comment on this.
These don't look right.
Try changing these
And if you changed the name on the server from file.xml to crossdomain.xml then I don't think they would be necessary at all.
instructions are not related to data loading, but to scripting access from loaded child swfs etc. (Just from memory, I always need to check things) so are probably not necessary if you're doing data only via LoadVars.
And....if you're sending by POST then the player_name won't arrive in the $_GET array. But you said that was a test.
If you don't want a new browser reload or browser window opened then you should use the LoadVars sendAndLoad method and have the server return a response that you receive to another LoadVars instance inside flash.
Oh and one more thing... for the send command, it does need a target for the browser level. To load the response into a new browser window you would do it like this:
varsToSend.send(" http://www.pogolama.com/view.php","_blank", "POST");