# Getting values from a dynamic PHP page into Flash

**URL:** <https://forum.kirupa.com/t/getting-values-from-a-dynamic-php-page-into-flash/269794>\
**Category:** flash\
**Created:** [September 1, 2008, 6:53pm UTC](https://forum.kirupa.com/t/getting-values-from-a-dynamic-php-page-into-flash/269794 "2008-09-01T18:53:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keera](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@keera](https://forum.kirupa.com/u/keera)\
**Post date:** [September 1, 2008, 6:53pm UTC](https://forum.kirupa.com/t/getting-values-from-a-dynamic-php-page-into-flash/269794/1 "2008-09-01T18:53:14Z")

</div>

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…

```php

$MyState = $_GET['MyState']; 

```

MyState is defined dynamically through the address bar, i.e. [http://www.mysite.com/mypage.php?MyState=Something](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](http://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.
