Getting values from a dynamic PHP page into Flash

Hi, I’m wondering if anyone here can help me. I’m a front end designer, so I don’t have much experience with coding and I’m having a lot of trouble finding a solution to this problem.

What I want to do is take the value of $MyState in the php code below and get a flash file located on the same page to recognize the value…



$MyState = $_GET['MyState']; 


MyState is defined dynamically through the address bar, i.e. http://www.mysite.com/mypage.php?MyState=Something

The value of MyState is constantly changing so doing a loadvars from mypage.php won’t work. Is there a way to loadvars and get the value of what is in the address bar? _url also does not work. _url is seen as mysite.com/myflashfile.swf.

Or does anyone know of any other ways to get the results I’m looking for?

I’d appreciate any help anyone could offer. Thanks in advance.