# Pass a post variable into Flash

**URL:** <https://forum.kirupa.com/t/pass-a-post-variable-into-flash/29073>\
**Category:** flash\
**Created:** [August 21, 2003, 9:06pm UTC](https://forum.kirupa.com/t/pass-a-post-variable-into-flash/29073 "2003-08-21T21:06:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigitalPimp](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@DigitalPimp](https://forum.kirupa.com/u/DigitalPimp)\
**Post date:** [August 21, 2003, 9:06pm UTC](https://forum.kirupa.com/t/pass-a-post-variable-into-flash/29073/1 "2003-08-21T21:06:23Z")

</div>

How can I pass a Form post variable into Flash?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2003, 3:23am UTC](https://forum.kirupa.com/t/pass-a-post-variable-into-flash/29073/2 "2003-08-22T03:23:57Z")

</div>

This might help you:  
[http://www.macromedia.com/support/flash/ts/documents/set\_variables.htm#javascripthttp://www.macromedia.com/support/flash/ts/documents/set\_variables.htm#javascript](http://www.macromedia.com/support/flash/ts/documents/set_variables.htm#javascripthttp://www.macromedia.com/support/flash/ts/documents/set_variables.htm#javascript)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2003, 5:54am UTC](https://forum.kirupa.com/t/pass-a-post-variable-into-flash/29073/3 "2003-08-22T05:54:42Z")

</div>

I think you should read the tutorials about PHP and Flash.

[http://www.kirupa.com/developer/actionscript/asandphp.htm](http://www.kirupa.com/developer/actionscript/asandphp.htm)

There are also other tutorials here that you can learn about dynamic data in Flash using PHP and MySQL.

Cheers!

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2003, 2:15pm UTC](https://forum.kirupa.com/t/pass-a-post-variable-into-flash/29073/4 "2003-08-22T14:15:03Z")

</div>

Thanks guys but I got it figured out.

ComicGeek, that PHP tutorial does me no good because we use ASP on our servers but thanks anyways.

What I did to get it to work was when I embed my movie into my web page I do this.

```php

src="moviename.swf?postVar=<%=Request("postVar")%>"

```

What that does in ASP is look for a post variable called postVar and pass that along into the flash file.

Pretty cool stuff.
