Unusual problem with flash (php)

in my php file i’ve this code

 echo "total=$totalRows";

and i’m trying to get this value in flash, it works, but not the way i want it.
in flash i’ve this code:

loadVariables("<A href="http://localhost/load.php",this,"POST");[/CODE">http://localhost/load.php",this,"POST");

and then,

tempVar = int(total);
 trace("TempVar " + tempVar);

it traces “TempVar 0”.

now, if i make a button and put this code,

tempVar = int(total);
 trace("TempVar " + tempVar);

it traces “TempVar 1”
because in my mySql database i’ve one row.
basically, i’ve found out that until the first frame isn’t finished compiling code, these php returned valued don’t get refreshed, is there any way i can get the same value from the code i put on the frame as i get from the button click? :slight_smile: