loadVariables issues

I need a way to send variables from javascript to flash, then have flash load variables from php to so that the flash can use the variables to output the correct data. I have found ways to supposedly send variables to flash using javascript, however none of them have worked for me. On the same account I have also found ways to send queries to php from flash, (loadVariables()) but it never has anything other than ‘undefined’ as the output.

I want this to wrok out, but am at the end of my rope with it. If anyone has USEFUL AND WORKING links/tutorials that actually WORK with Flash 8 to load variables from php and send variables from javascript to flash PLEASE post them here. If you want I can post a simple form of what I am talking about (the errors and all); but for the time being I am not going to.

Any HELP is WELCOME,
BetaWar