PDA

View Full Version : Problem posting flash _global to ASP page


seb835
11-26-2004, 03:53 PM
Hi, I have done a lot of flash/server integration with ASP and posting and sending variables is not a problem.

However, when I use my usual posting code:

loadVariables("track_results.asp", "", "POST");

It doesnt seem to post my _global.userLoginID variable at all. All form field values arrive in to my ASP page but not that _global variable??

I have got around this by making a hidden form field which I can retrieve the userLoginID information from, but this is a real drunken-butcher-meatcleaver-dumb*** way of doing things i think you'll agree ;)

Please could some one help me with posting flash _globals to ASP pages, many thanks! :)

andehlu
11-26-2004, 04:23 PM
thats strange... ive never tried but maybe you can redfeine the var as a non global on post? ex:

on(release){
var newname = _global.varname;
loadVariables("track_results.asp", "", "POST");
}

OR in the PHP, have u tried accessing it like $_POST[varname] ?